コード例 #1
0
 def test_resolve_root(self):
     path = Path("")
     self.assertEqual(path.resolve("name"), "name")
コード例 #2
0
 def test_resolve_bytes(self):
     path = Path("my/path")
     self.assertEqual(path.resolve(b"name"), "my/path/name")