def test_addslash(self):
     assert (addslash('http://localhost:4000') == 'http://localhost:4000/')
     assert (addslash('http://localhost/uploads') ==
             'http://localhost/uploads/')
     assert (addslash('http://localhost:4000/') == 'http://localhost:4000/')
     assert (addslash('http://localhost/uploads/') ==
             'http://localhost/uploads/')
Exemple #2
0
 def test_addslash(self):
     assert (addslash('http://localhost:4000') ==
             'http://localhost:4000/')
     assert (addslash('http://localhost/uploads') ==
             'http://localhost/uploads/')
     assert (addslash('http://localhost:4000/') ==
             'http://localhost:4000/')
     assert (addslash('http://localhost/uploads/') ==
             'http://localhost/uploads/')