app/tests/utils.py
def assert_viewname_status(*, code: int, **kwargs):
    """
    Assert that a viewname for challenge_short_name and pk returns status
    code `code` for a particular user.
    """
    response = get_view_for_user(**kwargs)
    assert response.status_code == code
    return response

    Assert that a viewname for challenge_short_name and pk returns status
    code `code` for a particular user.
    
Assert that a viewname for challenge_short_name and pk returns status
code `code` for a particular user.
Assert that a viewname for challenge_short_name and pk returns status code ` code ` for a particular user .
def assert_viewname_status(*, code: int, **kwargs):
    response = get_view_for_user(**kwargs)
    assert response.status_code == code
    return response
def assert_viewname_status ( * , code : int , ** kwargs ) : response = get_view_for_user ( ** kwargs ) assert response . status_code == code return response
Assert that a viewname for challenge_short_name and pk returns status
code `code` for a particular user.
Assert that a viewname for challenge_short_name and pk returns status code ` code ` for a particular user .
"""
    Assert that a viewname for challenge_short_name and pk returns status
    code `code` for a particular user.
    """
code
int