def test_destroy_controller_minimal(self): self.version_cli.return_get_destroy_controller_args = ["sub"] cli = CLI(self.exe, self.version_cli) cli.destroy_controller() self.assertEqual(self.calls, [ ("get_destroy_controller_args", (None, False), {}), ("run", ("sub", ), {}), ])
def test_destroy_controller_full(self): self.version_cli.return_get_destroy_controller_args = ["sub"] cli = CLI(self.exe, self.version_cli) cli.destroy_controller("spam", True) self.assertEqual(self.calls, [ ("get_destroy_controller_args", ("spam", True), {}), ("run", ("sub", ), {}), ])