def test_should_append_slash_no(self): for path in ['/news/index/', '/news/index.htm', 'news/index.html']: request = self.build_request(path) self.assertFalse(utils.should_append_slash(request))
def test_should_append_slash_yes(self): for path in ['/news/index', '/news/indhtm']: request = self.build_request(path) self.assertTrue(utils.should_append_slash(request))