mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
sasl: Add back the assert, with the correct @xml:lang this time.
This commit is contained in:
parent
047649dbc8
commit
ee511e653a
1 changed files with 4 additions and 0 deletions
|
@ -300,5 +300,9 @@ mod tests {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let failure = Failure::try_from(elem).unwrap();
|
let failure = Failure::try_from(elem).unwrap();
|
||||||
assert_eq!(failure.defined_condition, DefinedCondition::NotAuthorized);
|
assert_eq!(failure.defined_condition, DefinedCondition::NotAuthorized);
|
||||||
|
assert_eq!(
|
||||||
|
failure.texts[""],
|
||||||
|
String::from("Invalid username or password")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue