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)
def getClass(self): """Return the class name""" return ".".join(ntools.get_test_id(self.elmt).split(".")[:2])
def getName(self): """Return the name of the method""" return ".".join(ntools.get_test_id(self.elmt).split(".")[2:])