def test_parse_with_bom(self): """Test parser can throw away BOM""" text = u"""\xef\xbb\xbf<?xml version="1.0" encoding="utf-8"?><ODM/>""" self.assertEqual("ODM", rwsobjects.parseXMLString(text).tag)
def test_parse_with_bom(self): """Test parser can throw away BOM""" text = """\xef\xbb\xbf<?xml version="1.0" encoding="utf-8"?><ODM/>""" self.assertEqual("ODM",rwsobjects.parseXMLString(text).tag)
def test_parse_empty_string(self): text = u"""""" self.assertEqual("", rwsobjects.parseXMLString(text))
def test_parse_empty_string(self): text = u"""""" self.assertEqual("",rwsobjects.parseXMLString(text))