def test_isdir(self): drive = Drive() self.assertFalse(drive.isdir("drive://gsync_unittest/is_a_dir")) drive.mkdir("drive://gsync_unittest/is_a_dir") self.assertTrue(drive.isdir("drive://gsync_unittest/is_a_dir")) drive.create("drive://gsync_unittest/not_a_dir", {}) self.assertFalse(drive.isdir("drive://gsync_unittest/not_a_dir"))
def test_isdir(self): drive = Drive() self.assertTrue(drive.isdir("drive://unittest/")) self.assertFalse(drive.isdir("drive://unittest/open_for_read.txt"))