

def test_url_from_filename(self):
    basedir = '/www/linux-netbook.com/content'
    tests = [('/www/linux-netbook.com/content/compare/laptops.md', '/compare/laptops/'), ('/www/linux-netbook.com/content/review/hp-mini.html', '/review/hp-mini/')]
    for test in tests:
        self.assertEqual(test[1], path.url_from_filename(basedir[0], basedir=basedir))

dataset/ETHPy150Open yaph/logya/tests/test_path.py TestPath.test_url_from_filename/VarMisuse@50/119 `test`->`basedir`