Esempio n. 1
0
    def test_drive_cannot_be_moved(self):
        drive_name = "home"

        fs = FileSystem()
        fs.create_drive(drive_name)

        with self.assertRaises(IllegalFileSystemOperationException):
            fs.move(drive_name, f"new_{drive_name}")
Esempio n. 2
0
    def test_cannot_move_non_existent_file(self):
        fs = FileSystem()

        with self.assertRaises(PathNotFoundException):
            fs.move("home\\first", "home\\second")