[node-patches] Change in ovirt-node[master]: Tweak doctests a little for the new wrapper

rbarry at redhat.com rbarry at redhat.com
Tue Jul 1 13:48:33 UTC 2014


Ryan Barry has uploaded a new change for review.

Change subject: Tweak doctests a little for the new wrapper
......................................................................

Tweak doctests a little for the new wrapper

Instantiated models come out differently

Change-Id: I8322882f371e1465362ad9e5f73c204f778e948a
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
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, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/54/29454/1

diff --git a/src/ovirt/node/setup/cim/cim_model.py b/src/ovirt/node/setup/cim/cim_model.py
index 1d02a00..e567089 100644
--- a/src/ovirt/node/setup/cim/cim_model.py
+++ b/src/ovirt/node/setup/cim/cim_model.py
@@ -34,7 +34,7 @@
     >>> from ovirt.node.utils import fs
     >>> n = CIM(fs.FakeFs.File("dst"))
     >>> n.update(True)  # doctest: +ELLIPSIS
-    <cim_model.CIM object at ...>
+    <ovirt.node.setup.cim.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 abaf7c5..787ce23 100644
--- a/src/ovirt/node/setup/puppet/puppet_page.py
+++ b/src/ovirt/node/setup/puppet/puppet_page.py
@@ -110,7 +110,7 @@
     >>> n = Puppet(fs.FakeFs.File("dst"))
     >>> n.update(True, "puppet.example.com",
     ...          "http://localhost/path/to/cert")  # doctest: +ELLIPSIS
-    <puppet_page.Puppet object at ...>
+    <ovirt.node.setup.puppet.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 499b66d..b5bb30e 100644
--- a/src/ovirt/node/setup/snmp/snmp_model.py
+++ b/src/ovirt/node/setup/snmp/snmp_model.py
@@ -79,7 +79,7 @@
     >>> from ovirt.node.utils import fs
     >>> n = SNMP(fs.FakeFs.File("dst"))
     >>> n.update(True)  # doctest: +ELLIPSIS
-    <snmp_model.SNMP object at ...>
+    <ovirt.node.setup.snmp.snmp_model.SNMP object at ...>
     >>> n.retrieve()
     {'enabled': True}
     """


-- 
To view, visit http://gerrit.ovirt.org/29454
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8322882f371e1465362ad9e5f73c204f778e948a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list