

def test_list_dirs_from_url(self):
    tests = [('/index.html', []), ('/video/crouton-explained-hp-chromebook-11/', ['video']), ('__index__/index/', ['__index__']), ('/tags/video-tutorial/index.html', ['tags', 'video-tutorial']), ('/qotd/2015/03/22/', ['qotd', '2015', '03'])]
    for test in tests:
        self.assertEqual(test[1], path.list_dirs_from_url(test[0]))

dataset/ETHPy150Open yaph/logya/tests/test_path.py TestPath.test_list_dirs_from_url/original