]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: Fix python3 API test
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 24 Jan 2014 19:00:02 +0000 (14:00 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 24 Jan 2014 19:00:02 +0000 (14:00 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/python-lxc/examples/api_test.py

index a88fb13dfcced2feb4eb9d175f39941c2cd944a7..f72cc568a2ac874180541b5b432b5634f9ea72c7 100755 (executable)
@@ -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()