

def test_nicePath(self):
    f = libpry.coverage.File(None)
    f.path = (os.path.sep[0] + os.path.join('foo', 'bar.py'))
    assert (self.nicePath((os.path.sep[0] + 'foo')) == 'bar.py')
    assert (f.nicePath(f.path) == 'bar.py')

dataset/ETHPy150Open cortesi/pry/test/test_coverage.py uFile.test_nicePath/VarMisuse@49/59 `f`->`self`