Пример #1
0
 def testThis(self):
     p = Path(__file__)
     self.assertTrue(p.isfile())
     self.assertFalse(p.isdir())
     c = Path.cwd()
     self.assertNotEqual(p,c)
     self.assertTrue(c.isdir())
Пример #2
0
 def testThis(self):
     p = Path(__file__)
     self.assertTrue(p.isfile())
     self.assertFalse(p.isdir())
     c = Path.cwd()
     self.assertNotEqual(p, c)
     self.assertTrue(c.isdir())
Пример #3
0
 def testDir(self):
     c = Path.cwd()
     self.assertEqual(c,c.dir())
     c = Path('/sdjc/scdskjcdnsd/dhjdhjdjksdjksdksd')
     self.assertFalse(c.exists())
     self.assertRaises(ValueError,c.dir)
Пример #4
0
 def testDir(self):
     c = Path.cwd()
     self.assertEqual(c, c.dir())
     c = Path('/sdjc/scdskjcdnsd/dhjdhjdjksdjksdksd')
     self.assertFalse(c.exists())
     self.assertRaises(ValueError, c.dir)