def METHOD_NAME(response, text):
    """
    Check if any of the response's non field errors contain the given text.
    :type response: Response
    :type text: str
    """
    error_messages = [force_text(error_message) for error_message in response.data['non_field_errors']]
    assert any(text in error_message for error_message in error_messages)