Package lemon :: Package external :: Package Cheetah :: Package Tests :: Module unittest_local_copy :: Class TestLoader
[show private | hide private]
[frames | no frames]

Class TestLoader


This class is responsible for loading tests according to various
criteria and returning them wrapped in a Test

Method Summary
  getTestCaseNames(self, testCaseClass)
Return a sorted sequence of method names found within testCaseClass...
  loadTestsFromModule(self, module)
Return a suite of all tests cases contained in the given module...
  loadTestsFromName(self, name, module)
Return a suite of all tests cases given a string specifier.
  loadTestsFromNames(self, names, module)
Return a suite of all tests cases found using the given sequence of string specifiers.
  loadTestsFromTestCase(self, testCaseClass)
Return a suite of all tests cases contained in testCaseClass...
integer sortTestMethodsUsing(x, y)
Return negative if x<y, zero if x==y, positive if x>y.

Class Variable Summary
classobj suiteClass = lemon.external.Cheetah.Tests.unittest_local_copy.TestSuite
str testMethodPrefix = 'test'

Method Details

getTestCaseNames(self, testCaseClass)

Return a sorted sequence of method names found within testCaseClass

loadTestsFromModule(self, module)

Return a suite of all tests cases contained in the given module

loadTestsFromName(self, name, module=None)

Return a suite of all tests cases given a string specifier.

The name may resolve either to a module, a test case class, a
test method within a test case class, or a callable object which
returns a TestCase or TestSuite instance.

The method optionally resolves the names relative to a given module.

loadTestsFromNames(self, names, module=None)

Return a suite of all tests cases found using the given sequence
of string specifiers. See 'loadTestsFromName()'.

loadTestsFromTestCase(self, testCaseClass)

Return a suite of all tests cases contained in testCaseClass

Class Variable Details

testMethodPrefix

Type:
str
Value:
'test'                                                                 

Generated by Epydoc 2.0 on Mon Nov 10 15:07:56 2003 http://epydoc.sf.net