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