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