tests/utils.py
def assert_response_ok(response):
    """Test whether the response is mean success

    :param response: Response instance from ``pytest_flask.fixtures.client``
    :raise AssertionError: If test failed, will raise ``AssertionError``
    """
    assert response.status_code == 200, response.data
    assert response.json['status'] == 'SUCCESS'
    assert response.json['message'] == ''
Test whether the response is mean success

    :param response: Response instance from ``pytest_flask.fixtures.client``
    :raise AssertionError: If test failed, will raise ``AssertionError``
    
Test whether the response is mean success
Test whether the response is mean success
def assert_response_ok(response):
    assert response.status_code == 200, response.data
    assert response.json['status'] == 'SUCCESS'
    assert response.json['message'] == ''
def assert_response_ok ( response ) : assert response . status_code == 200 , response . data assert response . json [ 'status' ] == 'SUCCESS' assert response . json [ 'message' ] == ''
Test whether the response is mean success
Test whether the response is mean success
"""Test whether the response is mean success

    :param response: Response instance from ``pytest_flask.fixtures.client``
    :raise AssertionError: If test failed, will raise ``AssertionError``
    """
If test failed, will raise ``AssertionError``
If test failed will raise ` ` AssertionError ` `
AssertionError
response
Response instance from ``pytest_flask.fixtures.client``
Response instance from ` ` pytest_flask . fixtures . client ` `