tests (unit): fix tests + black reformatting.
This commit is contained in:
parent
c9ab0cd9dd
commit
067d8f32bf
1 changed files with 229 additions and 194 deletions
|
|
@ -40,8 +40,7 @@ class TestXEP0320:
|
|||
"fingerprint": {
|
||||
"hash": "sha-256",
|
||||
"setup": "active",
|
||||
"fingerprint":
|
||||
"6D:8F:6A:53:A3:7E:10:B2:58:16:AB:A3:92:6F:8A:5B:2D:55:1C:"
|
||||
"fingerprint": "6D:8F:6A:53:A3:7E:10:B2:58:16:AB:A3:92:6F:8A:5B:2D:55:1C:"
|
||||
"FB:2F:E3:6E:94:FE:4F:4E:FE:D4:77:49:B6",
|
||||
},
|
||||
}
|
||||
|
|
@ -59,8 +58,7 @@ class TestXEP0320:
|
|||
"fingerprint": {
|
||||
"hash": "sha-256",
|
||||
"setup": "active",
|
||||
"fingerprint":
|
||||
"6D:8F:6A:53:A3:7E:10:B2:58:16:AB:A3:92:6F:8A:5B:2D:55:1C:"
|
||||
"fingerprint": "6D:8F:6A:53:A3:7E:10:B2:58:16:AB:A3:92:6F:8A:5B:2D:55:1C:"
|
||||
"FB:2F:E3:6E:94:FE:4F:4E:FE:D4:77:49:B6",
|
||||
},
|
||||
}
|
||||
|
|
@ -70,7 +68,8 @@ class TestXEP0320:
|
|||
expected_transport_elt = xml_tools.parse(
|
||||
f"<transport><fingerprint xmlns='{NS_JINGLE_DTLS}' hash='sha-256' "
|
||||
"setup='active'>6D:8F:6A:53:A3:7E:10:B2:58:16:AB:A3:92:6F:8A:5B:2D:55:1C:FB:"
|
||||
"2F:E3:6E:94:FE:4F:4E:FE:D4:77:49:B6</fingerprint></transport>"""
|
||||
"2F:E3:6E:94:FE:4F:4E:FE:D4:77:49:B6</fingerprint></transport>"
|
||||
""
|
||||
)
|
||||
|
||||
assert transport_elt.toXml() == expected_transport_elt.toXml()
|
||||
|
|
|
|||
Loading…
Reference in a new issue