]> git.ipfire.org Git - thirdparty/lldpd.git/commit
tests: fix tests around XML by canonicalizing XML representation
authorVincent Bernat <vincent@bernat.ch>
Mon, 7 Sep 2020 18:10:10 +0000 (20:10 +0200)
committerVincent Bernat <vincent@bernat.ch>
Mon, 7 Sep 2020 18:10:10 +0000 (20:10 +0200)
commit1d06c55cab1eea7e825e5ac65f951f2ca0e0d4e5
treeded469083bbc455c6737e0896e7d3b7c14d7f563
parent5d9226d140676b7246b26794b05916226e0b4caa
tests: fix tests around XML by canonicalizing XML representation

Since Python 3.8, insertion order is respected for attributes, so we
cannot just compare strings as previously. Python 3.8 also introduces
a `canonicalize()` function to normalize XML for digital signature. We
apply this function if it exists.
tests/integration/test_lldpcli.py