コード例 #1
0
ファイル: test.py プロジェクト: kblissett/toy-filesystem
    def test_check_that_item_does_not_exist_and_parent_drive_does_not_exist(self):
        fs = FileSystem()

        self.assertFalse(fs.exists("home\\test_folder"))
コード例 #2
0
ファイル: test.py プロジェクト: kblissett/toy-filesystem
    def test_check_that_parent_of_file_does_not_exist(self):
        fs = FileSystem()

        self.assertFalse(fs.exists("home\\test_folder\\test1.txt"))
コード例 #3
0
ファイル: test.py プロジェクト: kblissett/toy-filesystem
    def test_check_that_file_does_not_exist(self):
        fs = FileSystem()
        fs.create_drive("home")

        self.assertFalse(fs.exists("home\\test1.txt"))