fn verify_parse_role_error_on_invalid_role() {
        let invalid_role_type = "this is not a valid role type";
        match RoleType::from_str(invalid_role_type) {
            Err(ParseRoleError(_)) => { /* the expected error was thrown! */ }
            _ => panic!("A ParseRoleError should have been thrown on the invalid role type!"),
        }
    }
// TODO(joshlind): once the 'matches' crate becomes stable, clean this test up!
once the 'matches' crate becomes stable, clean this test up!
once the ' matches ' crate becomes stable clean this test up!
fn verify_parse_role_error_on_invalid_role() {
        let invalid_role_type = "this is not a valid role type";
        match RoleType::from_str(invalid_role_type) {
            Err(ParseRoleError(_)) => { /* the expected error was thrown! */ }
            _ => panic!("A ParseRoleError should have been thrown on the invalid role type!"),
        }
    }
fn verify_parse_role_error_on_invalid_role ( ) { let invalid_role_type = " " ; match RoleType :: from_str ( invalid_role_type ) { Err ( ParseRoleError ( _ ) ) => { /* the expected error was thrown! */ } _ => panic ! ( " " ) , } }
TODO(joshlind): once the 'matches' crate becomes stable, clean this test up!
TODO ( joshlind ) : once the ' matches ' crate becomes stable clean this test up!