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

Method test_to_xml_no_encoding

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

STIXHeaderClass · 0.90
to_xmlMethod · 0.45

Tested by

no test coverage detected