fn check_user_validation_errors(response: &mut LocalResponse) {
    let value = common::response_json_value(response);
    let success = value.get("success").and_then(|success| success.as_bool());
    let message = value.get("message").and_then(|message| message.as_str());

    assert_eq!(Some(false), success);
    assert_eq!(Some("email is already in use"), message);
}
/// Catches the registration test, if the email has already been used in the database
Catches the registration test, if the email has already been used in the database
Catches the registration test if the email has already been used in the database
fn check_user_validation_errors(response: &mut LocalResponse) {
    let value = common::response_json_value(response);
    let success = value.get("success").and_then(|success| success.as_bool());
    let message = value.get("message").and_then(|message| message.as_str());
    assert_eq!(Some(false), success);
    assert_eq!(Some("email is already in use"), message);
}
fn check_user_validation_errors ( response : & mut LocalResponse ) { let value = common :: response_json_value ( response ) ; let success = value . get ( " " ) . and_then ( | success | success . as_bool ( ) ) ; let message = value . get ( " " ) . and_then ( | message | message . as_str ( ) ) ; assert_eq ! ( Some ( false ) success ) ; assert_eq ! ( Some ( " " ) message ) ; }
Catches the registration test, if the email has already been used in the database
Catches the registration test if the email has already been used in the database
response
&mut LocalResponse
response
&mut LocalResponse