mirror of https://github.com/apache/cloudstack.git
string checks in the nose plugin
This commit is contained in:
parent
dcd4e3612f
commit
cfabfd5b7e
|
|
@ -75,3 +75,11 @@ class cloudstackTestCase(unittest.case.TestCase):
|
|||
except Exception as e:
|
||||
raise Exception("Warning: Exception during cleanup : %s" % e)
|
||||
return
|
||||
|
||||
def assertEqual(self, first, second, msg=None):
|
||||
"""Fail if the two objects are unequal as determined by the '=='
|
||||
operator.
|
||||
"""
|
||||
if isinstance(msg, str):
|
||||
msg = msg.encode()
|
||||
super(cloudstackTestCase,self).assertEqual(first,second,msg)
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ class MarvinPlugin(Plugin):
|
|||
if not self.__testName:
|
||||
self.__testName = "test"
|
||||
self.__testClient.identifier = '-'.\
|
||||
join([self.__identifier, self.__testName])
|
||||
join([self.__identifier if self.__identifier != None else "marvinTest", self.__testName])
|
||||
if self.__tcRunLogger:
|
||||
self.__tcRunLogger.name = test.__str__()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue