From 0917b987cb33b72178a76b3394bc78db22ce4427 Mon Sep 17 00:00:00 2001 From: Michal Minar Date: Sat, 30 Nov 2013 14:54:08 +0100 Subject: 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. --- src/python/lmi/test/base.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/python') 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:"] -- cgit