def test_no_args(self): try: id() except TypeError: pass else: self.fail("Failed to raise TypeError")
def test(self): obj = object() self.failUnless(id(obj) is obj)