def test_filename_to_url_homepage(self): expected = 'http://www.jeuxvideo.com/' actual = _filename_to_url('http%3A%2F%2Fwww.jeuxvideo.com%2F') self.assertEqual(actual, expected)
def test_filename_to_url_normal_url(self): expected = 'http://www.jeuxvideo.com/toutes-les-videos/machine-10/genre-2240/' actual = _filename_to_url('toutes-les-videos%2Fmachine-10%2Fgenre-2240%2F') self.assertEqual(actual, expected)