def testArgIsFunction(self): h = 5 try: always(delay(3))(h) except AlwaysError as e: self.assertEqual(e.kind, _error.ArgType) else: self.fail()
def testArgIsFunction(self): h = 5 with raises_kind(AlwaysError, _error.ArgType): always(delay(3))(h)