def METHOD_NAME(self):
    self.mock_sm.return_value.check_installed = lambda check_installed: True
    self.mock_sm.return_value.remove = lambda remove: True
    runnable = Runnable(
        kind="package", uri=None, **{"action": "remove", "name": "foo"}
    )
    runner = PackageRunner()
    status = runner.run(runnable)
    messages = []
    while True:
        try:
            messages.append(next(status))
        except StopIteration:
            break
    self.assertEqual(messages[-1]["result"], "pass")
    stdout = b"Package(s) foo removed successfully"
    self.assertIn(stdout, messages[-3]["log"])