Skip to content

Commit b6ba9a8

Browse files
author
Bryan Worrell
committed
Updated TestMechanisms to use new EntityList conventions (multiple field required).
1 parent c3fedd9 commit b6ba9a8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

stix/indicator/test_mechanism.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,13 @@ class TestMechanisms(stix.EntityList):
107107
_binding = indicator_binding
108108
_namespace = 'http://stix.mitre.org/Indicator-2'
109109
_binding_class = _binding.TestMechanismsType
110-
_contained_type = _BaseTestMechanism
111-
_binding_var = "Test_Mechanism"
112-
_entity_factory = TestMechanismFactory
113-
114110

111+
test_mechanism = fields.TypedField(
112+
name="Test_Mechanism",
113+
type_=_BaseTestMechanism,
114+
factory=TestMechanismFactory,
115+
multiple=True
116+
)
115117

116118

117119

0 commit comments

Comments
 (0)