Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
55f64d9c
authored
Jul 15, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flake8 warnings
parent
c54d5eef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
netdriver.py
+0
-0
tests/test.py
+9
-9
No files found.
netdriver.py
View file @
55f64d9c
tests/test.py
View file @
55f64d9c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
vm
import
vm
import
vmdriver
import
vmdriver
#import logging
#
import logging
from
nose.tools
import
raises
from
nose.tools
import
raises
graphics
=
{
'type'
:
'vnc'
,
'listen'
:
graphics
=
{
'type'
:
'vnc'
,
'listen'
:
...
@@ -34,18 +34,18 @@ asd = vm.VMInstance.deserialize(vmdict)
...
@@ -34,18 +34,18 @@ asd = vm.VMInstance.deserialize(vmdict)
print
asd
.
dump_xml
()
print
asd
.
dump_xml
()
# Enable logging
# Enable logging
#logging.basicConfig(filename='example.log', level=logging.DEBUG)
#
logging.basicConfig(filename='example.log', level=logging.DEBUG)
#print testvm.dump_xml()
#
print testvm.dump_xml()
#vm_driver = vmdriver.VMDriver()
#
vm_driver = vmdriver.VMDriver()
#vm_driver.connect()
#
vm_driver.connect()
#vm_driver.vm_define(testvm)
#
vm_driver.vm_define(testvm)
#print '%(name)s defined.' % {'name': testvm.name}
#
print '%(name)s defined.' % {'name': testvm.name}
#for i in vm_driver.list_domains():
#
for i in vm_driver.list_domains():
# print i
# print i
# #vm_driver.vm_start(i)
# #vm_driver.vm_start(i)
# vm_driver.vm_undefine(i)
# vm_driver.vm_undefine(i)
# print '%(name)s undefined.' % {'name': i}
# print '%(name)s undefined.' % {'name': i}
#vm_driver.disconnect()
#
vm_driver.disconnect()
@raises
(
AttributeError
)
@raises
(
AttributeError
)
...
...
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