

def test_LogError_saves_error_message_to_the_DB(self):
    message = 'Error message'
    db_mock = flexmock()
    db_mock.should_receive('AddError').with_args(message).once()
    self.core_mock.DB = db_mock
    error_handler = self._create_error_handler_with_core_mock()
    error_handler.LogError(message)

dataset/ETHPy150Open owtf/owtf/tests/test_cases/framework/error_handler_tests.py ErrorHandlerTests.test_LogError_saves_error_message_to_the_DB/original