fix marking test

master
Rich Piazza 2020-03-19 16:43:37 -04:00
parent f60e4170fd
commit fe919049b8
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ def _custom_marking_builder(cls, type, properties, version):
class _CustomMarking(cls, _STIXBase):
if not properties or not isinstance(properties, list):
raise ValueError("Must supply a list, containing tuples. For example, [('property1', IntegerProperty())]")
_type = type
_properties = OrderedDict(properties)