Exemplo n.º 1
0
 def testSchemaSupport (self):
     instance = trac26.tAttributes(aReq=4)
     self.assertTrue(instance.validateBinding())
     instance = trac26.tAttributeReqFixed(aReqFixed=9)
     self.assertTrue(instance.validateBinding())
     instance = trac26.CreateFromDocument(self.Good_xmlt)
     self.assertEqual(self.Good_xmld, instance.toxml('utf-8', root_only=True))
Exemplo n.º 2
0
 def testSchemaSupport(self):
     instance = trac26.tAttributes(aReq=4)
     self.assertTrue(instance.validateBinding())
     instance = trac26.tAttributeReqFixed(aReqFixed=9)
     self.assertTrue(instance.validateBinding())
     instance = trac26.CreateFromDocument(self.Good_xmlt)
     self.assertEqual(self.Good_xmld, instance.toxml('utf-8',
                                                     root_only=True))
Exemplo n.º 3
0
 def testDisplayBatchReqFixed(self):
     instance = trac26.tAttributeReqFixed()
     if DisplayException:
         instance.validateBinding()
Exemplo n.º 4
0
 def testBatchReqFixed(self):
     instance = trac26.tAttributeReqFixed()
     with self.assertRaises(pyxb.MissingAttributeError) as cm:
         instance.validateBinding()
Exemplo n.º 5
0
 def testDisplayBatchReqFixed (self):
     instance = trac26.tAttributeReqFixed()
     if DisplayException:
         instance.validateBinding()
Exemplo n.º 6
0
 def testBatchReqFixed (self):
     instance = trac26.tAttributeReqFixed()
     with self.assertRaises(pyxb.MissingAttributeError) as cm:
         instance.validateBinding()