(self)
| 139 | |
| 140 | @silence_warnings |
| 141 | def test_to_xml_no_encoding(self): |
| 142 | s = STIXHeader() |
| 143 | s.title = UNICODE_STR |
| 144 | xml = s.to_xml(encoding=None) |
| 145 | self.assertTrue(isinstance(xml, text_type)) |
| 146 | self.assertTrue(UNICODE_STR in xml) |
| 147 | |
| 148 | @silence_warnings |
| 149 | def test_from_xml_utf16_encoded(self): |
nothing calls this directly
no test coverage detected