def test_joinpath_to_nothing(self): res = Path('foo') assert res.joinpath() == res
def test_joinpath_on_instance(self): res = Path('foo') foo_bar = res.joinpath('bar') assert foo_bar == p(nt='foo\\bar', posix='foo/bar')