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())
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())
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)
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)