'Return a suite of all tests cases contained in testCaseClass'

def loadTestsFromTestCase(self, testCaseClass):

    if issubclass(testCaseClass, TestSuite):
        raise TypeError('Test    cases    should    not    be    derived    from    TestSuite.    Maybe    you    meant    to    derive    from    TestCase?')
    testCaseNames = self.getTestCaseNames(testCaseClass)
    if ((not testCaseNames) and hasattr(testCaseClass, 'runTest')):
        testCaseNames = ['runTest']
    suite = self.classSuiteClass(map(testCaseClass, testCaseNames), testCaseClass)
    return suite
