Ejemplo n.º 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)
Ejemplo n.º 2
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)
Ejemplo n.º 3
0
 def getClass(self):
     """Return the class name"""
     return u".".join(cast(ntools.get_test_id(self.elmt)).split(u".")[:2])
Ejemplo n.º 4
0
 def getName(self):
     """Return the name of the method"""
     return u".".join(cast(ntools.get_test_id(self.elmt)).split(u".")[2:])
Ejemplo n.º 5
0
 def getClass(self):
     '''Return the class name'''
     return '.'.join(ntools.get_test_id(self.elmt).split('.')[:2])
Ejemplo n.º 6
0
 def getName(self):
     '''Return the name of the method'''
     return '.'.join(ntools.get_test_id(self.elmt).split('.')[2:])
Ejemplo n.º 7
0
 def getClass(self):
     '''Return the class name'''
     return u'.'.join(cast(ntools.get_test_id(self.elmt)).split(u'.')[:2])
Ejemplo n.º 8
0
 def getName(self):
     '''Return the name of the method'''
     return u'.'.join(cast(ntools.get_test_id(self.elmt)).split(u'.')[2:])