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