Beispiel #1
0
 def testRead3(self):
   sInput = StringIO.StringIO("Hello World")
   x = XML.read(sInput)
   self.assert_(x is False)
Beispiel #2
0
 def testRead1(self):
   sInput = StringIO.StringIO("<xml><tag1><tag2></tag2></tag1><tag3></tag3></xml>")
   x = XML.read(sInput)
   self.assert_(x is False)
Beispiel #3
0
 def testRead2(self):
   sInput = StringIO.StringIO("")
   x = XML.read(sInput)
   self.assert_(x is False)
Beispiel #4
0
 def testRead1(self):
   sInput = StringIO.StringIO("<tag1><tag2></tag2></tag1><tag3></tag3>")
   x = XML.read(sInput)
   self.assert_(x is True)