def test_auth_login_response_from_valid_dict(): resp = AuthLoginResponse.from_dict(testdata.LOGIN_RESPONSE_DICT) assert_auth_login_response(resp)
def test_auth_login_response_from_invalid_dict(): with pytest.raises(ValidationError): AuthLoginResponse.from_dict({})
def test_auth_login_response_from_valid_dict(): resp = AuthLoginResponse.from_dict(DICT_DATA) assert_auth_login_response(resp)