(self)
| 123 | |
| 124 | @silence_warnings |
| 125 | def test_to_xml_utf16_encoded(self): |
| 126 | encoding = 'utf-16' |
| 127 | s = STIXHeader() |
| 128 | s.title = UNICODE_STR |
| 129 | xml = s.to_xml(encoding=encoding) |
| 130 | print(xml) |
| 131 | self.assertTrue(UNICODE_STR in xml.decode(encoding)) |
| 132 | |
| 133 | @silence_warnings |
| 134 | def test_to_xml_default_encoded(self): |
nothing calls this directly
no test coverage detected