Exemplo n.º 1
0
 def test_404(self):
     methods = ['get', 'post', 'options']
     for method in methods:
         request = getattr(self.factory, method)('/')
         with self.assertRaises(Http404):
             endpoint_removed(request)
Exemplo n.º 2
0
 def test_404(self):
     methods = ['get', 'post', 'options']
     for method in methods:
         request = getattr(self.factory, method)('/')
         with self.assertRaises(Http404):
             endpoint_removed(request)