def test_Add_should_notify_the_user_when_an_OWTF_bug_is_found(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="owtf")
        stdout_content = self.get_recorded_stdout_and_close()

        assert_that(stdout_content is not None)
dataset/ETHPy150Open owtf/owtf/tests/test_cases/framework/error_handler_tests.py/ErrorHandlerTests.test_Add_should_notify_the_user_when_an_OWTF_bug_is_found/original