Displaying 2 results from an estimated 2 matches for "test_libvirt".
Did you mean:
get_libvirt
2016 May 04
9
[PATCH 0/8] python: PEP 8 fixes
Hi,
this series cleans up the Python sources, either static or generated,
including also tests, to make them PEP 8 compliant; see
https://www.python.org/dev/peps/pep-0008/ and tools like pep8.
Almost all the issues reported by pep8 are fixed, reducing the issues
from 3818 to 7.
The changes should have no effect on the actual code, while it will
help Python users with consistency with other
2016 Feb 22
3
[PATCH 1/3] python: tests: refactor to use unittest's discovery
...guestsdir)
-
-# Check we're using the version of libvirt-python that has c_pointer() methods.
-if not "c_pointer" in dir (conn):
- print ("skipping test: libvirt-python doesn't support c_pointer()")
- exit (77)
-
-class Test910Libvirt (unittest.TestCase):
- def test_libvirt (self):
- dom = conn.lookupByName ("blank-disk")
-
- g = guestfs.GuestFS ()
-
- r = g.add_libvirt_dom (dom, readonly=1)
- self.assertEqual (r, 1)
-
-if __name__ == '__main__':
- unittest.main ()
diff --git a/python/t/__init__.py b/python/t/__init__.p...