mirror of
git://github.com/lxc/lxc
synced 2025-09-01 02:27:17 +00:00
tests: Fix python3 API test
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
@@ -93,7 +93,7 @@ assert(container.state == "RUNNING")
|
|||||||
|
|
||||||
## Checking IP address
|
## Checking IP address
|
||||||
print("Getting the interface names")
|
print("Getting the interface names")
|
||||||
assert(container.get_interfaces() == ('lo', 'eth0'))
|
assert(set(container.get_interfaces()) == set(('lo', 'eth0')))
|
||||||
|
|
||||||
## Checking IP address
|
## Checking IP address
|
||||||
print("Getting the IP addresses")
|
print("Getting the IP addresses")
|
||||||
@@ -159,7 +159,7 @@ assert(container.state == "STOPPED")
|
|||||||
## Cloning the container
|
## Cloning the container
|
||||||
print("Cloning the container")
|
print("Cloning the container")
|
||||||
clone = lxc.Container(CLONE_NAME)
|
clone = lxc.Container(CLONE_NAME)
|
||||||
clone.clone(container)
|
clone.clone(container.name)
|
||||||
clone.start()
|
clone.start()
|
||||||
clone.stop()
|
clone.stop()
|
||||||
clone.destroy()
|
clone.destroy()
|
||||||
|
Reference in New Issue
Block a user