diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2020-10-06 11:01:42 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2020-10-06 12:25:14 +0100 |
commit | 1f441675108ef5e7566e84b546339a1d1ee9af4c (patch) | |
tree | 919aca586b4ab009e29fde05937bc6c8f987311e /tests/test_domain.py | |
parent | 613411502d2cdf3541837710239409044a376b0a (diff) | |
download | libvirt-python-1f441675108ef5e7566e84b546339a1d1ee9af4c.tar.gz |
tests: start basic unit tests for more APIs
To prevent regressions, especially with generated code, we need to have
test coverage of more APIs. This starts off with coverage for object
creation for all object types supported by the test driver
currently. This exercises constructors which have been broken several
times in the past.
Related https://gitlab.com/libvirt/libvirt-python/-/issues/4
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tests/test_domain.py')
-rw-r--r-- | tests/test_domain.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_domain.py b/tests/test_domain.py index 2b3710b..17fd7b3 100644 --- a/tests/test_domain.py +++ b/tests/test_domain.py @@ -17,3 +17,9 @@ class TestLibvirtDomain(unittest.TestCase): self.assertTrue("weight" in params) params["weight"] = 100 self.dom.setSchedulerParameters(params) + + @unittest.skipIf(libvirt.getVersion() == 4000000, + "test driver screenshot broken in 4.0.0") + def testScreenshot(self): + stream = self.conn.newStream() + ss = self.dom.screenshot(stream, 0, 0) |