parsers: fix tests indentation with minidom PartialEq changes
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
e62e870ef0
commit
c8206455f1
4 changed files with 8 additions and 76 deletions
|
|
@ -149,12 +149,10 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_muc_simple_password() {
|
||||
let elem: Element = "
|
||||
<x xmlns='http://jabber.org/protocol/muc'>
|
||||
<password>coucou</password>
|
||||
</x>"
|
||||
.parse()
|
||||
.unwrap();
|
||||
let elem: Element =
|
||||
"<x xmlns='http://jabber.org/protocol/muc'><password>coucou</password></x>"
|
||||
.parse()
|
||||
.unwrap();
|
||||
let elem1 = elem.clone();
|
||||
let muc = Muc::try_from(elem).unwrap();
|
||||
assert_eq!(muc.password, Some("coucou".to_owned()));
|
||||
|
|
|
|||
Loading…
Reference in a new issue