Lines Matching refs:testCaseClass
48 def loadTestsFromTestCase(self, testCaseClass): argument
50 if issubclass(testCaseClass, suite.TestSuite):
53 testCaseNames = self.getTestCaseNames(testCaseClass)
54 if not testCaseNames and hasattr(testCaseClass, 'runTest'):
56 loaded_suite = self.suiteClass(map(testCaseClass, testCaseNames))
133 def getTestCaseNames(self, testCaseClass): argument
136 def isTestMethod(attrname, testCaseClass=testCaseClass, argument
139 hasattr(getattr(testCaseClass, attrname), '__call__')
140 testFnNames = filter(isTestMethod, dir(testCaseClass))
307 def getTestCaseNames(testCaseClass, prefix, sortUsing=cmp): argument
308 return _makeLoader(prefix, sortUsing).getTestCaseNames(testCaseClass)
310 def makeSuite(testCaseClass, prefix='test', sortUsing=cmp, argument
312 return _makeLoader(prefix, sortUsing, suiteClass).loadTestsFromTestCase(testCaseClass)