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

Method test_producer

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

Source from the content-addressed store, hash-verified

173 self._test_partial_dict(d)
174
175 def test_producer(self):
176 d = {
177 'producer': {
178 'description': 'A sample description',
179 'identity': {
180 'id': 'example:Identity-1ae603ab-9b0b-11e3-980e-28cfe912ced8',
181 'specification': {
182 'party_name': {
183 'name_lines': [
184 {'value': 'Foo'},
185 {'value': 'Bar'}
186 ],
187 'person_names': [
188 {'name_elements': [{'value': 'John Smith'}]},
189 {'name_elements': [{'value': 'Jill Smith'}]}
190 ]
191 }
192 },
193 'xsi:type': 'stix-ciqidentity:CIQIdentity3.0InstanceType'
194 },
195 'time': {'produced_time': '2014-02-21T10:16:14.947201'}
196 }
197 }
198
199 self._test_partial_dict(d)
200
201 def test_kill_chain_phases(self):
202 d = {

Callers

nothing calls this directly

Calls 1

_test_partial_dictMethod · 0.80

Tested by

no test coverage detected