From: Vincent Bernat Date: Fri, 20 May 2016 18:14:26 +0000 (+0200) Subject: tests: fix `lldpcli watch` XML test X-Git-Tag: 0.9.3~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b13beee1cb934d4cc3b48c0f5fcd900c4226f22;p=thirdparty%2Flldpd.git tests: fix `lldpcli watch` XML test --- diff --git a/tests/integration/test_lldpcli.py b/tests/integration/test_lldpcli.py index 521cc6fd..49e3b4b7 100644 --- a/tests/integration/test_lldpcli.py +++ b/tests/integration/test_lldpcli.py @@ -237,7 +237,7 @@ def test_watch_xml(lldpd1, lldpd, lldpcli, namespaces, links): with namespaces(1): result = lldpcli("-f", "xml", "show", "neighbors") assert result.returncode == 0 - expected = result.stdexpected.decode('ascii') + expected = result.stdout.decode('ascii') expected = ET.fromstring(expected) assert [x.text for x in expected.findall("./interface/chassis/name")] == \