From 5b13beee1cb934d4cc3b48c0f5fcd900c4226f22 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 20 May 2016 20:14:26 +0200 Subject: [PATCH] tests: fix `lldpcli watch` XML test --- tests/integration/test_lldpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")] == \ -- 2.39.5