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