def METHOD_NAME(response, status_code, message=None):
    """
    Helper method to check matching response status.
    Extracted from parent class to improve output in case of JSON.
    :param response: Flask response
    :param status_code: response status code (e.g. 200)
    :param message: Message to display on test failure
    """
    __tracebackhide__ = True
    message = message or 'HTTP Status %s expected but got %s' \
                         % (status_code, response.status_code)
    if response.mimetype == 'application/json':
        try:
            second_line = 'Response content is {0}'.format(response.json)
            message = '\n'.join((message, second_line))
        except Exception:
            pass
    assert response.status_code == status_code, message