Esempio n. 1
0
    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"))
Esempio n. 2
0
    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"))
Esempio n. 3
0
    def test_isdir(self):
        drive = Drive()

        self.assertTrue(drive.isdir("drive://unittest/"))
        self.assertFalse(drive.isdir("drive://unittest/open_for_read.txt"))
Esempio n. 4
0
    def test_isdir(self):
        drive = Drive()

        self.assertTrue(drive.isdir("drive://unittest/"))
        self.assertFalse(drive.isdir("drive://unittest/open_for_read.txt"))