def test_reverse_empty(self): url = URL(['ab']) self.assertEqual(url.reverse([]), u'/ab')
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')
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')