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

Method test_negate

stix/test/indicator_test.py:38–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36
37
38 def test_negate(self):
39 d = dict(self._base_dict.items())
40 d['negate'] = False
41
42 d2 = self.klass.from_dict(d).to_dict()
43 self.assertTrue('negate' not in d2)
44
45 o2 = self.klass.from_dict(d).to_obj()
46 self.assertTrue(o2.negate is None)
47
48 def test_indicator_types(self):
49 d = {

Callers

nothing calls this directly

Calls 3

to_dictMethod · 0.45
from_dictMethod · 0.45
to_objMethod · 0.45

Tested by

no test coverage detected