]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: fix `lldpcli watch` XML test
authorVincent Bernat <vincent@bernat.im>
Fri, 20 May 2016 18:14:26 +0000 (20:14 +0200)
committerVincent Bernat <vincent@bernat.im>
Fri, 20 May 2016 18:14:35 +0000 (20:14 +0200)
tests/integration/test_lldpcli.py

index 521cc6fdc57ad5142ac424f3aa59cdc805caa7e9..49e3b4b7c21e3ba5603fb9502cf315a2fe34ccee 100644 (file)
@@ -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")] == \