@patch('this.is.my.module.logger')
def test_check_logging_message(self, mock_logger):
    mock_logger.error.assert_called_with('Your log message here')
How do I test if a certain log message is logged in a Django test case?