[node-patches] Change in ovirt-node[master]: tests: Some doctest fixes
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Mon May 12 10:44:55 UTC 2014
Fabian Deutsch has uploaded a new change for review.
Change subject: tests: Some doctest fixes
......................................................................
tests: Some doctest fixes
Change-Id: Ib3f413fd3b433a5330cdece46cabe96b310331a7
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/setup/cim/cim_model.py
M src/ovirt/node/setup/puppet/puppet_page.py
M src/ovirt/node/setup/snmp/snmp_model.py
3 files changed, 6 insertions(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/83/27583/1
diff --git a/src/ovirt/node/setup/cim/cim_model.py b/src/ovirt/node/setup/cim/cim_model.py
index 4f590d6..1d02a00 100644
--- a/src/ovirt/node/setup/cim/cim_model.py
+++ b/src/ovirt/node/setup/cim/cim_model.py
@@ -33,7 +33,8 @@
>>> from ovirt.node.utils import fs
>>> n = CIM(fs.FakeFs.File("dst"))
- >>> n.update(True)
+ >>> n.update(True) # doctest: +ELLIPSIS
+ <cim_model.CIM object at ...>
>>> n.retrieve()
{'enabled': True}
"""
diff --git a/src/ovirt/node/setup/puppet/puppet_page.py b/src/ovirt/node/setup/puppet/puppet_page.py
index 57ae961..c47ed08 100644
--- a/src/ovirt/node/setup/puppet/puppet_page.py
+++ b/src/ovirt/node/setup/puppet/puppet_page.py
@@ -109,7 +109,8 @@
>>> n = Puppet(fs.FakeFs.File("dst"))
>>> n.update(True, "puppet.example.com",
- ... "http://localhost/path/to/cert")
+ ... "http://localhost/path/to/cert") # doctest: +ELLIPSIS
+ <puppet_page.Puppet object at ...>
>>> data = sorted(n.retrieve().items())
>>> data[:2]
[('certname', 'http://localhost/path/to/cert'), ('enabled', 'yes')]
diff --git a/src/ovirt/node/setup/snmp/snmp_model.py b/src/ovirt/node/setup/snmp/snmp_model.py
index a6999b6..f2a0ab2 100644
--- a/src/ovirt/node/setup/snmp/snmp_model.py
+++ b/src/ovirt/node/setup/snmp/snmp_model.py
@@ -81,7 +81,8 @@
>>> from ovirt.node.utils import fs
>>> n = SNMP(fs.FakeFs.File("dst"))
- >>> n.update(True)
+ >>> n.update(True) # doctest: +ELLIPSIS
+ <snmp_model.SNMP object at ...>
>>> n.retrieve()
{'enabled': True}
"""
--
To view, visit http://gerrit.ovirt.org/27583
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib3f413fd3b433a5330cdece46cabe96b310331a7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list