Пример #1
0
 def test_validate_url_trailing_slash(self):
     tests = (
         ('', './'),
         (None, './'),
         (u'http://example.org', u'http://example.org/'),
         ('http://example.org/', 'http://example.org/'),
     )
     for t in tests:
         self.assertEqual(
             frontend.validate_url_trailing_slash(None, t[0], None), t[1])
Пример #2
0
 def test_validate_url_trailing_slash(self):
     tests = (
                 ('', './' ),
                 (None, './' ),
                 (u'http://example.org', u'http://example.org/' ),
                 ('http://example.org/', 'http://example.org/' ),
             )
     for t in tests:
         self.assertEqual(
                 frontend.validate_url_trailing_slash(None, t[0], None),
                 t[1])