[libvirt] [PATCH python 0/2] Add unit test framework
Michal Privoznik
mprivozn at redhat.com
Tue Mar 18 14:10:18 UTC 2014
On 18.03.2014 12:27, Daniel P. Berrange wrote:
> The bug fix of Michal's to handling of typed parameters demonstrated
> a clear need for a unit test framework for python bindings. By using
> the test:///default driver we can easily test a great many python
> APIs. Once the test driver has full API coverage, we can in fact unit
> test all the python bindings.
>
> The first patch does the bare minimum to plumb the unit test framework
> into 'python setup test.py' (requires python-nose RPM to be present)
> and does a test for the virConnectListAllDomains API.
>
> The second patch tests Michal's previous bug fix - this test will fail
> on current GIT and Michal's patch makes it pass.
>
> A nice project for someone wanting to learn more about libvirt and the
> python binding is to flesh out this test suite to cover as many APIs
> as possible. We should aim to have an addition to this test suite
> for any bugs we find in the bindings henceforth.
>
> Daniel P. Berrange (2):
> Add support for running unit tests with nose
> Add test for setting scheduler parameters
>
> setup.py | 5 +++++
> tests/test_conn.py | 16 ++++++++++++++++
> tests/test_domain.py | 19 +++++++++++++++++++
> 3 files changed, 40 insertions(+)
> create mode 100644 tests/test_conn.py
> create mode 100644 tests/test_domain.py
>
ACK to both patches.
Michal
More information about the libvir-list
mailing list