class _MockFSCommands(object): def __init__(self): self.log = "" self.fscommands = FileSystemCommands() def create_file(self, path): self.log += "create_file " self.fscommands.create_file(path) def create_folder(self, path): self.log += "create_folder " self.fscommands.create_folder(path) def move(self, path, new_location): self.log += "move " self.fscommands.move(path, new_location) def remove(self, path): self.log += "remove " self.fscommands.remove(path)
class _MockFSCommands(object): def __init__(self): self.log = '' self.fscommands = FileSystemCommands() def create_file(self, path): self.log += 'create_file ' self.fscommands.create_file(path) def create_folder(self, path): self.log += 'create_folder ' self.fscommands.create_folder(path) def move(self, path, new_location): self.log += 'move ' self.fscommands.move(path, new_location) def remove(self, path): self.log += 'remove ' self.fscommands.remove(path)
class _DeprecatedFSCommands(object): def __init__(self): self.log = "" self.fscommands = FileSystemCommands() def create_file(self, path): self.log += "create_file " self.fscommands.create_file(path) def create_folder(self, path): self.log += "create_folder " self.fscommands.create_folder(path) def move(self, path, new_location): self.log += "move " self.fscommands.move(path, new_location) def remove(self, path): self.log += "remove " self.fscommands.remove(path)