Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 def test_parse_empty_string(self):
     text = u""""""
     self.assertEqual("", rwsobjects.parseXMLString(text))
Beispiel #4
0
 def test_parse_empty_string(self):
     text = u""""""
     self.assertEqual("",rwsobjects.parseXMLString(text))