def test_get_type(self): cpath = CPath("a/v") self.assertEqual(cpath.get_type(), CPathType.FILE) cfile = CFile("a/v", 1, 1) self.assertEqual(cfile.get_type(), CPathType.FILE)
def test_get_type(self): cpath = CPath("a/") cdir = CDir("a") self.assertEqual(cpath.get_type(), cdir.get_type())