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}")
def test_cannot_move_non_existent_file(self): fs = FileSystem() with self.assertRaises(PathNotFoundException): fs.move("home\\first", "home\\second")