示例#1
0
 def testSchemaSupport (self):
     instance = trac26.eInts(1,2)
     self.assertEqual(2, len(instance.eInt))
     e0 = instance.eInt[0]
     self.assertTrue(isinstance(e0, trac26.eInt.typeDefinition()))
     self.assertEqual(e0, 1)
     instance = trac26.CreateFromDocument(self.Good_xmlt)
     self.assertEqual(self.Good_xmld, instance.toxml('utf-8', root_only=True))
示例#2
0
 def testSchemaSupport(self):
     instance = trac26.eInts(1, 2)
     self.assertEqual(2, len(instance.eInt))
     e0 = instance.eInt[0]
     self.assertTrue(isinstance(e0, trac26.eInt.typeDefinition()))
     self.assertEqual(e0, 1)
     instance = trac26.CreateFromDocument(self.Good_xmlt)
     self.assertEqual(self.Good_xmld, instance.toxml('utf-8',
                                                     root_only=True))
示例#3
0
 def testDisplay(self):
     if DisplayException:
         instance = trac26.eInts()
         instance.append(trac26.eCTwSC(2))
示例#4
0
 def testSchemaSupport(self):
     instance = trac26.eInts()
     instance.append(1)
     instance = trac26.CreateFromDocument(self.Good_xmlt)
     self.assertEqual(self.Good_xmld, instance.toxml('utf-8',
                                                     root_only=True))
示例#5
0
 def testDisplay (self):
     if DisplayException:
         instance = trac26.eInts()
         instance.append(trac26.eCTwSC(2))
示例#6
0
 def testSchemaSupport (self):
     instance = trac26.eInts()
     instance.append(1)
     instance = trac26.CreateFromDocument(self.Good_xmlt)
     self.assertEqual(self.Good_xmld, instance.toxml('utf-8', root_only=True))