so that i can assert that errors were logged (see mock_logging.warn.assert_called_with)