Example #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))
Example #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))
Example #3
0
 def testDisplay(self):
     if DisplayException:
         instance = trac26.eInts()
         instance.append(trac26.eCTwSC(2))
Example #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))
Example #5
0
 def testDisplay (self):
     if DisplayException:
         instance = trac26.eInts()
         instance.append(trac26.eCTwSC(2))
Example #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))