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