def test_instances(self): self.assertIsInstance(Path2(), PosixPath2) self.assertIsInstance(Path2("."), PosixPath2) self.assertIsInstance(Path2.home(), PosixPath2) self.assertIsInstance(Path2.home().resolve(), PosixPath2)
def test_instances(self): self.assertIsInstance(Path2(), WindowsPath2) self.assertIsInstance(Path2("."), WindowsPath2) self.assertIsInstance(Path2(".").resolve(), WindowsPath2) self.assertIsInstance(Path2.home(), WindowsPath2)