From e6c6d62287d4259cff223313eef3b7c5b03e2a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Fri, 24 Jan 2014 14:00:02 -0500 Subject: [PATCH] tests: Fix python3 API test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- src/python-lxc/examples/api_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python-lxc/examples/api_test.py b/src/python-lxc/examples/api_test.py index a88fb13df..f72cc568a 100755 --- a/src/python-lxc/examples/api_test.py +++ b/src/python-lxc/examples/api_test.py @@ -93,7 +93,7 @@ assert(container.state == "RUNNING") ## Checking IP address print("Getting the interface names") -assert(container.get_interfaces() == ('lo', 'eth0')) +assert(set(container.get_interfaces()) == set(('lo', 'eth0'))) ## Checking IP address print("Getting the IP addresses") @@ -159,7 +159,7 @@ assert(container.state == "STOPPED") ## Cloning the container print("Cloning the container") clone = lxc.Container(CLONE_NAME) -clone.clone(container) +clone.clone(container.name) clone.start() clone.stop() clone.destroy()