Ejemplo n.º 1
0
 def test_special_sequences(self):
     for re_str, kwargs, expected in self.special_sequences:
         # print re_str, kwargs
         try:
             out = reverse(re_str, kwargs)
             self.assertEqual(out, expected)
         except AssertionError:
             raise
         except Exception as e:
             self.assertEqual(type(e), expected)
Ejemplo n.º 2
0
 def test_capture_groups(self):
     for re_str, kwargs, expected in self.capture_groups:
         # print re_str, kwargs
         try:
             out = reverse(re_str, kwargs)
             self.assertEqual(out, expected)
         except AssertionError:
             raise
         except Exception as e:
             print re_str, out
             self.assertEqual(type(e), expected)