Esempio n. 1
0
 def testArgIsFunction(self):
     h = 5
     try:
         instance(h)
     except InstanceError as e:
         self.assertEqual(e.kind, _error.ArgType)
     else:
         self.fail()
Esempio n. 2
0
 def testArgIsFunction(self):
     h = 5
     try:
         instance(h)
     except InstanceError as e:
         self.assertEqual(e.kind, _error.ArgType)
     else:
         self.fail()
Esempio n. 3
0
 def testArgIsFunction(self):
     h = 5
     with raises_kind(InstanceError, _error.ArgType):
         instance(h)
Esempio n. 4
0
 def testArgIsFunction(self):
     h = 5
     with raises_kind(InstanceError, _error.ArgType):
         instance(h)