Пример #1
0
 def test_reverse_empty(self):
     url = URL(['ab'])
     self.assertEqual(url.reverse([]), u'/ab')
Пример #2
0
 def test_reverse_empty(self):
     url = URL(['ab'])
     self.assertEqual(url.reverse([]), u'/ab')
Пример #3
0
 def test_reverse_additional(self):
     url = URL(['ab', None, 'cd', None])
     self.assertEqual(url.reverse(['a/b', 'cd', 'ef']),
                      u'/ab/a%2Fb/cd/cd/ef')
Пример #4
0
 def test_reverse_additional(self):
     url = URL(['ab', None, 'cd', None])
     self.assertEqual(
         url.reverse(['a/b', 'cd', 'ef']), u'/ab/a%2Fb/cd/cd/ef')