Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
e6c6d622
Unverified
Commit
e6c6d622
authored
Jan 24, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Fix python3 API test
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
53df623d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
api_test.py
src/python-lxc/examples/api_test.py
+2
-2
No files found.
src/python-lxc/examples/api_test.py
View file @
e6c6d622
...
@@ -93,7 +93,7 @@ assert(container.state == "RUNNING")
...
@@ -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")
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment