'Catching \'object_\' should raise a TypeError.'

def catch_fails(self, object_):

    try:
        try:
            raise StandardError
        except object_:
            pass
    except TypeError:
        pass
    except StandardError:
        self.fail(('TypeError    expected    when    catching    %s' % type(object_)))
    try:
        try:
            raise StandardError
        except (object_,):
            pass
    except TypeError:
        return
    except StandardError:
        self.fail(('TypeError    expected    when    catching    %s    as    specified    in    a    tuple' % type(object_)))
