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

Method test_observable

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

Source from the content-addressed store, hash-verified

88 self._test_partial_dict(d)
89
90 def test_observable(self):
91 d = {
92 'observable': {
93 'id': 'example:Observable-fdaa7cec-f8be-494d-b83f-575f6f018666',
94 'object': {
95 'id': 'example:File-ec52e6bc-2d7e-44e2-911b-468bb775a5c6',
96 'properties': {
97 'hashes': [
98 {
99 'simple_hash_value': u'4EC0027BEF4D7E1786A04D021FA8A67F',
100 'type': u'MD5'
101 }
102 ],
103 'xsi:type': 'FileObjectType'
104 }
105 }
106 }
107 }
108
109 self._test_partial_dict(d)
110
111 def test_composite_indicator_expression(self):
112 d = {

Callers

nothing calls this directly

Calls 1

_test_partial_dictMethod · 0.80

Tested by

no test coverage detected