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

Method test_strip_cdata

stix/test/common/cdata_test.py:46–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44 }
45
46 def test_strip_cdata(self):
47 stripped = "TESTTEST"
48 wrapped = '<![CDATA[%s]]>' % stripped
49
50 d = {
51 'value': wrapped,
52 'encoded': False
53 }
54
55 ecdata = EncodedCDATA.from_dict(d)
56 self.assertEqual(ecdata.value, stripped)
57
58 def test_set_value(self):
59 stripped = "TESTTEST"

Callers

nothing calls this directly

Calls 1

from_dictMethod · 0.45

Tested by

no test coverage detected