MCPcopy Create free account
hub / github.com/STIXProject/python-stix / test_to_xml_utf16_encoded

Method test_to_xml_utf16_encoded

stix/test/encoding_test.py:125–131  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

STIXHeaderClass · 0.90
to_xmlMethod · 0.45

Tested by

no test coverage detected