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

Method test_related_campaigns

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

Source from the content-addressed store, hash-verified

150 self._test_partial_dict(d)
151
152 def test_related_campaigns(self):
153 d = {
154 'related_campaigns': {
155 'scope': 'inclusive',
156 'related_campaigns': [
157 {
158 'campaign': {
159 'idref': 'example:Campaign-2f193992-d1c9-45a4-9db6-edbe9f7109cb',
160 'names': ['foo', 'bar']
161 }
162 },
163 {
164 'campaign': {
165 'idref': 'example:Campaign-2f193992-d1c9-45a4-9db6-edbe9f7109cb',
166 'names': ['foo', 'bar']
167 }
168 }
169 ]
170 }
171 }
172
173 self._test_partial_dict(d)
174
175 def test_producer(self):
176 d = {

Callers

nothing calls this directly

Calls 1

_test_partial_dictMethod · 0.80

Tested by

no test coverage detected