def test_crud(self):
        """
        Tests CRUD for traffic model.
        """
        from models import snippet_generator

        def create():
            pass

        def read():
            self.login(admin_username, admin_password)
            response = self.client.get(path=api_url + "/traffic/",
                                       HTTP_X_AUTH_TOKEN=self.x_auth_token)
            self.assertEqual(response.status_code, 200)

        def update():
            pass

        def delete():
            pass

        print("Generating test traffic in Redis")
        snippet_generator.generate_traffic()

        print("Testing READ in %s" % self.__class__)
        read()
dataset/ETHPy150Open emccode/heliosburn/heliosburn/django/hbproject/api/tests.py/TrafficViewTestCase.test_crud/original