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

Method test_test_mechanisms

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

Source from the content-addressed store, hash-verified

217 self._test_partial_dict(d)
218
219 def test_test_mechanisms(self):
220 d = {
221 'test_mechanisms': [
222 {
223 'id': 'example:testmechanism-1',
224 'efficacy': {
225 'timestamp': '2014-06-20T15:16:56.987966+00:00',
226 'value': {
227 'value': 'Low',
228 'xsi:type': 'stixVocabs:HighMediumLowVocab-1.0'
229 }
230 },
231 'producer': {
232 'identity': {
233 'id': 'example:Identity-a0740d84-9fcd-44af-9033-94e76a53201e',
234 'name': 'FOX IT'
235 },
236 'references': [
237 'http://blog.fox-it.com/2014/04/08/openssl-heartbleed-bug-live-blog/'
238 ]
239 },
240 'description': {
241 'value': 'Foo',
242 'structuring_format': 'Bar'
243 },
244 'type': "Test",
245 'specification': {
246 'value': "Test",
247 'encoded': False
248 },
249 'xsi:type': 'genericTM:GenericTestMechanismType'
250 }
251 ]
252 }
253 self._test_partial_dict(d)
254
255
256 def test_likely_impact(self):

Callers

nothing calls this directly

Calls 1

_test_partial_dictMethod · 0.80

Tested by

no test coverage detected