def METHOD_NAME(self, object_):
    """Make sure that raising 'object_' triggers a TypeError."""
    try:
        raise object_
    except TypeError:
        return  # What is expected.
    self.fail("TypeError expected for raising %s" % type(object_))