Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/d/j/django-daguerre-2.1.1/daguerre/tests/unit/test_views.py   django-daguerre(Download)
        request = self.factory.get('/', HTTP_X_REQUESTED_WITH='XMLHttpRequest')
        with self.assertNumQueries(1):
            response = view.get(request)
 
        self.assertEqual(response.status_code, 200)
        request = self.factory.get('/', HTTP_X_REQUESTED_WITH='XMLHttpRequest')
        with self.assertNumQueries(1):
            response = view.get(request)
 
        self.assertEqual(response.status_code, 200)

src/d/j/django-daguerre-HEAD/daguerre/tests/unit/test_views.py   django-daguerre(Download)
        request = self.factory.get('/', HTTP_X_REQUESTED_WITH='XMLHttpRequest')
        with self.assertNumQueries(1):
            response = view.get(request)
 
        self.assertEqual(response.status_code, 200)
        request = self.factory.get('/', HTTP_X_REQUESTED_WITH='XMLHttpRequest')
        with self.assertNumQueries(1):
            response = view.get(request)
 
        self.assertEqual(response.status_code, 200)