Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def test_parse_empty_string(self):
     text = u""""""
     self.assertEqual("", rwsobjects.parseXMLString(text))
Exemplo n.º 4
0
 def test_parse_empty_string(self):
     text = u""""""
     self.assertEqual("",rwsobjects.parseXMLString(text))