Exemplo n.º 1
0
 def _GetTestURI(self, test):
   if sys.version_info[:2] <= (2, 4):
     return '%s.%s' % (unittest._strclass(test.__class__),
                       test._TestCase__testMethodName)
   return '%s.%s.%s' % (test.__class__.__module__,
                        test.__class__.__name__,
                        test._testMethodName)
Exemplo n.º 2
0
 def __repr__(self):
     return "<%s run=%i errors=%i failures=%i skipped=%i>" % (
         unittest._strclass(self.__class__),
         self.testsRun,
         len(self.errors),
         len(self.failures),
         len(self.skipped),
     )
Exemplo n.º 3
0
 def shortDescription(self):
     return "%s (%s) With seed %s" % (
         self._testMethodName,
         _strclass(self.__class__),
         getattr(self, '__django_any_seed'),
     )
Exemplo n.º 4
0
 def __repr__(self):
     return "<%s tests=generator (%s)>" % (
         unittest._strclass(self.__class__), id(self))
Exemplo n.º 5
0
 def __repr__(self):
     return "<%s context=%s>" % (
         unittest._strclass(self.__class__),
         getattr(self.context, '__name__', self.context))
Exemplo n.º 6
0
def TestResult__repr__(self):
    return "<%s run=%i errors=%i failures=%i skipped=%i>" % (
        unittest._strclass(self.__class__), self.testsRun, len(
            self.errors), len(self.failures), len(self.skipped))
Exemplo n.º 7
0
 def shortDescription(self):
     return "%s (%s) With seed %s" % (self._testMethodName,  _strclass(self.__class__), getattr(self, '__django_any_seed'))
Exemplo n.º 8
0
 def __str__(self):
     ''' Override this so that we know which instance it is '''
     return "(%s): %s (%s)" % (self.url, self._testMethodName, unittest._strclass(self.__class__))
Exemplo n.º 9
0
 def _GetTestURI(self, test):
     if sys.version_info[:2] <= (2, 4):
         return '%s.%s' % (unittest._strclass(
             test.__class__), test._TestCase__testMethodName)
     return '%s.%s' % (unittest._strclass(
         test.__class__), test._testMethodName)
Exemplo n.º 10
0
 def shortDescription(self):
         return "%s (%s) under browser %s" % (self._testMethodName,  _strclass(self.__class__), windmill.settings['active_browser'])
Exemplo n.º 11
0
 def __repr__(self):
     return "<%s testMethod=%s>" % \
             (_strclass(self.__class__), self.__testMethodName)
Exemplo n.º 12
0
 def __str__(self):
     return "%s (%s)" % (self.__testMethodName, _strclass(self.__class__))
Exemplo n.º 13
0
 def shortDescription(self):
     return "%s (%s) under browser %s" % (
         self._testMethodName, _strclass(
             self.__class__), windmill.settings['active_browser'])
Exemplo n.º 14
0
 def __str__(self):
     ''' Override this so that we know which instance it is '''
     return "(%s): %s (%s)" % (self.url, self._testMethodName,
                               unittest._strclass(self.__class__))
Exemplo n.º 15
0
 def __repr__(self):
     return "<%s testMethod=%s>" % \
             (_strclass(self.__class__), self.__testMethodName)
Exemplo n.º 16
0
 def __str__(self):
     return "%s (%s)" % (self.__testMethodName, _strclass(self.__class__))