

def test_logger_no_message_and_environ():
    mock_logger = mock.Mock()
    mock_transport = mock.Mock()
    mock_transport.get_extra_info.return_value = ('127.0.0.3', 0)
    access_logger = helpers.AccessLogger(mock_logger, '%r %{FOOBAR}e')
    access_logger.log(None, None, None, mock_transport, 0.0)
    mock_logger.info.assert_called_with('- -')

dataset/ETHPy150Open KeepSafe/aiohttp/tests/test_helpers.py test_logger_no_message_and_environ/original