*output: the expected output entries in expected order
**kwargs: additional kwargs passed to execute_rule.
self.assertEqual(list(output), self.execute_rule(**kwargs).splitlines())
def assert_console_raises(self, exception, **kwargs):
Verifies the expected exception is raised by the console task under test.
After Change
*output: the expected output entries in expected order
**kwargs: additional kwargs passed to execute_rule.
result = self.execute_rule(**kwargs)
assert list(output) == result.stdout.splitlines()
def assert_console_raises(self, exception: Type[Exception], **kwargs) -> None:
Verifies the expected exception is raised by the goal rule.