'Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.'

def __init__(self, methodName='runTest'):

    self._testMethodName = methodName
    self._resultForDoCleanups = None
    try:
        testMethod = getattr(self, methodName)
    except AttributeError:
        raise ValueError(('no    such    test    method    in    %s:    %s' % (self.__class__, methodName)))
    self._testMethodDoc = testMethod.__doc__
    self._cleanups = []
    self._type_equality_funcs = _TypeEqualityDict(self)
    self.addTypeEqualityFunc(dict, 'assertDictEqual')
    self.addTypeEqualityFunc(list, 'assertListEqual')
    self.addTypeEqualityFunc(tuple, 'assertTupleEqual')
    self.addTypeEqualityFunc(set, 'assertSetEqual')
    self.addTypeEqualityFunc(frozenset, 'assertSetEqual')
    self.addTypeEqualityFunc(unicode, 'assertMultiLineEqual')
