Beispiel #1
0
 def test_instances(self):
     self.assertIsInstance(Path2(), PosixPath2)
     self.assertIsInstance(Path2("."), PosixPath2)
     self.assertIsInstance(Path2.home(), PosixPath2)
     self.assertIsInstance(Path2.home().resolve(), PosixPath2)
Beispiel #2
0
 def test_instances(self):
     self.assertIsInstance(Path2(), PosixPath2)
     self.assertIsInstance(Path2("."), PosixPath2)
     self.assertIsInstance(Path2.home(), PosixPath2)
     self.assertIsInstance(Path2.home().resolve(), PosixPath2)
Beispiel #3
0
 def test_instances(self):
     self.assertIsInstance(Path2(), WindowsPath2)
     self.assertIsInstance(Path2("."), WindowsPath2)
     self.assertIsInstance(Path2(".").resolve(), WindowsPath2)
     self.assertIsInstance(Path2.home(), WindowsPath2)
Beispiel #4
0
 def test_instances(self):
     self.assertIsInstance(Path2(), WindowsPath2)
     self.assertIsInstance(Path2("."), WindowsPath2)
     self.assertIsInstance(Path2(".").resolve(), WindowsPath2)
     self.assertIsInstance(Path2.home(), WindowsPath2)