

def test_Add_should_print_and_save_to_the_DB_a_non_OWTF_error(self):
    error_handler = self._create_error_handler_with_core_mock()
    flexmock(error_handler)
    error_handler.should_receive('LogError').once()
    self.init_stdout_recording()
    error_handler.Add('Error message', BugType='external')
    stdout_content = self.get_recorded_stdout_and_close()
    assert_that((error_handler is not None))

dataset/ETHPy150Open owtf/owtf/tests/test_cases/framework/error_handler_tests.py ErrorHandlerTests.test_Add_should_print_and_save_to_the_DB_a_non_OWTF_error/VarMisuse@62/115 `stdout_content`->`error_handler`