summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorMichal Minar <miminar@redhat.com>2013-11-30 14:54:08 +0100
committerMichal Minar <miminar@redhat.com>2013-12-02 12:30:30 +0100
commit0917b987cb33b72178a76b3394bc78db22ce4427 (patch)
tree277b9ce0e6932c1c4bc770fc3de7109eafc7a2c5 /src/python
parentdc283cceaf1c09721fe67fce229aeeb3efa20390 (diff)
downloadopenlmi-providers-0917b987cb33b72178a76b3394bc78db22ce4427.tar.gz
openlmi-providers-0917b987cb33b72178a76b3394bc78db22ce4427.tar.xz
openlmi-providers-0917b987cb33b72178a76b3394bc78db22ce4427.zip
software: minor test enhancements
Added one test to SoftwareIdentityFileCheck.Invoke() method testing correct error code. Renamed testing package pkg1 to pkg2 in misc repository to match its comment. Rendering function CIMInstanceNames should behave nicely for objects of another type and return their text representation.
Diffstat (limited to 'src/python')
-rw-r--r--src/python/lmi/test/base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python/lmi/test/base.py b/src/python/lmi/test/base.py
index 1522979..a4640f3 100644
--- a/src/python/lmi/test/base.py
+++ b/src/python/lmi/test/base.py
@@ -41,6 +41,8 @@ def render_iname(iname, indent=2):
:returns: *iname* nicely rendered.
:rtype: string
"""
+ if not isinstance(iname, pywbem.CIMInstanceName):
+ return repr(iname)
lines = [ "%s" % iname.classname
, " "*indent + "namespace: %s" % iname.namespace
, " "*indent + "keys:"]