def testArgIsFunction(self): h = 5 try: instance(h) except InstanceError as e: self.assertEqual(e.kind, _error.ArgType) else: self.fail()
def testArgIsFunction(self): h = 5 with raises_kind(InstanceError, _error.ArgType): instance(h)