def testException (self): instance = None with self.assertRaises(pyxb.AbstractElementError) as cm: instance = trac26.eAbstractCard('un') e = cm.exception self.assertTrue(instance is None) self.assertEqual(e.element, trac26.eAbstractCard) self.assertEqual(e.value, ('un',)) self.assertEqual(str(e), 'Cannot instantiate abstract element eAbstractCard directly')
def testException(self): instance = None with self.assertRaises(pyxb.AbstractElementError) as cm: instance = trac26.eAbstractCard('un') e = cm.exception self.assertTrue(instance is None) self.assertEqual(e.element, trac26.eAbstractCard) self.assertEqual(e.value, ('un', )) self.assertEqual( str(e), 'Cannot instantiate abstract element eAbstractCard directly')
def testDisplayException(self): if DisplayException: trac26.eAbstractCard('un')
def testDisplayException (self): if DisplayException: trac26.eAbstractCard('un')