Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit e1c4b81

Browse files
author
Samuel Hassine
committed
[client] Fix tests
1 parent 6691a98 commit e1c4b81

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pycti/utils/constants.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ def has_value(cls, value):
6363
return value.lower() in lower_attr
6464

6565

66+
class ContainerTypes(Enum):
67+
NOTE = "Note"
68+
OBSERVED_DATA = "Observed-Data"
69+
OPINION = "Opinion"
70+
REPORT = "Report"
71+
72+
@classmethod
73+
def has_value(cls, value):
74+
lower_attr = list(map(lambda x: x.lower(), cls._value2member_map_))
75+
return value.lower() in lower_attr
76+
77+
6678
class StixMetaTypes(Enum):
6779
MARKING_DEFINITION = "Marking-Definition"
6880
LABEL = "Label"

0 commit comments

Comments
 (0)