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