fn check_auth_response(response: &mut LocalResponse) {
    let value = common::response_json_value(response);
    let user = value.get("user").expect("must have a 'user' field");

    assert_eq!(EMAIL, user.get("email").expect("must have a 'email' field"));
    assert_eq!(
        FIRST_NAME,
        user.get("firstName")
            .expect("must have a 'firstName' field"),
    );
    assert_eq!(
        LAST_NAME,
        user.get("lastName").expect("must have a 'lastName' field")
    );
    assert!(user.get("token").is_some());
}
/// Assert that body contains "user" response with expected fields.
Assert that body contains "user" response with expected fields.
Assert that body contains " user " response with expected fields .
fn check_auth_response(response: &mut LocalResponse) {
    let value = common::response_json_value(response);
    let user = value.get("user").expect("must have a 'user' field");
    assert_eq!(EMAIL, user.get("email").expect("must have a 'email' field"));
    assert_eq!(
        FIRST_NAME,
        user.get("firstName")
            .expect("must have a 'firstName' field"),
    );
    assert_eq!(
        LAST_NAME,
        user.get("lastName").expect("must have a 'lastName' field")
    );
    assert!(user.get("token").is_some());
}
fn check_auth_response ( response : & mut LocalResponse ) { let value = common :: response_json_value ( response ) ; let user = value . get ( " " ) . expect ( " " ) ; assert_eq ! ( EMAIL user get ( " " ) expect ( " " ) ) ; assert_eq ! ( FIRST_NAME user get ( " " ) expect ( " " ) ) ; assert_eq ! ( LAST_NAME user get ( " " ) expect ( " " ) ) ; assert ! ( user get ( " " ) is_some ( ) ) ; }
Assert that body contains "user" response with expected fields.
Assert that body contains " user " response with expected fields .
response
&mut LocalResponse
response
&mut LocalResponse