Пример #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)
Пример #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)
Пример #3
0
 def test_instances(self):
     self.assertIsInstance(Path2(), WindowsPath2)
     self.assertIsInstance(Path2("."), WindowsPath2)
     self.assertIsInstance(Path2(".").resolve(), WindowsPath2)
     self.assertIsInstance(Path2.home(), WindowsPath2)
Пример #4
0
 def test_instances(self):
     self.assertIsInstance(Path2(), WindowsPath2)
     self.assertIsInstance(Path2("."), WindowsPath2)
     self.assertIsInstance(Path2(".").resolve(), WindowsPath2)
     self.assertIsInstance(Path2.home(), WindowsPath2)