class WidgetTestCase(unittest.TestCase):

    def __init__(self, methodName='runTest'):
        self.parameter = default_parameter
unittest.TestCase.__init__(self, methodName)

def __str__(self):
    """ Override this so that we know which instance it is """
return '%s(%s) (%s)' % (self._testMethodName, self.currentTest, unittest.
    _strclass(self.__class__))
Giving parameters into TestCase from Suite in python