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)
Example #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),
     )
Example #3
0
 def shortDescription(self):
     return "%s (%s) With seed %s" % (
         self._testMethodName,
         _strclass(self.__class__),
         getattr(self, '__django_any_seed'),
     )
Example #4
0
 def __repr__(self):
     return "<%s tests=generator (%s)>" % (
         unittest._strclass(self.__class__), id(self))
Example #5
0
 def __repr__(self):
     return "<%s context=%s>" % (
         unittest._strclass(self.__class__),
         getattr(self.context, '__name__', self.context))
Example #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))
Example #7
0
 def shortDescription(self):
     return "%s (%s) With seed %s" % (self._testMethodName,  _strclass(self.__class__), getattr(self, '__django_any_seed'))
Example #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__))
Example #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)
Example #10
0
 def shortDescription(self):
         return "%s (%s) under browser %s" % (self._testMethodName,  _strclass(self.__class__), windmill.settings['active_browser'])
Example #11
0
 def __repr__(self):
     return "<%s testMethod=%s>" % \
             (_strclass(self.__class__), self.__testMethodName)
Example #12
0
 def __str__(self):
     return "%s (%s)" % (self.__testMethodName, _strclass(self.__class__))
 def shortDescription(self):
     return "%s (%s) under browser %s" % (
         self._testMethodName, _strclass(
             self.__class__), windmill.settings['active_browser'])
Example #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__))
Example #15
0
 def __repr__(self):
     return "<%s testMethod=%s>" % \
             (_strclass(self.__class__), self.__testMethodName)
Example #16
0
 def __str__(self):
     return "%s (%s)" % (self.__testMethodName, _strclass(self.__class__))