(self)
| 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): |
nothing calls this directly
no test coverage detected