示例#1
0
 def enableSuite(self, test):
     '''Check that suite exists. If not exists, create a new one'''
     # Get the current module
     current = ntools.get_test_id(test).split('.')[0]
     # Check if this is a new one
     if self.module != current:
         # Set the new module
         self.module = current
         # Stop the previous suite
         self.stopSuite()
         # Start a new one
         self.startSuite(self.module)
示例#2
0
 def getClass(self):
     """Return the class name"""
     return ".".join(ntools.get_test_id(self.elmt).split(".")[:2])
示例#3
0
 def getName(self):
     """Return the name of the method"""
     return ".".join(ntools.get_test_id(self.elmt).split(".")[2:])