diff --git a/stix2/__init__.py b/stix2/__init__.py index e69de29..74aeca4 100644 --- a/stix2/__init__.py +++ b/stix2/__init__.py @@ -0,0 +1,7 @@ +import uuid + + +class Indicator: + + def __init__(self): + self.id = "indicator--" + str(uuid.uuid4()) diff --git a/stix2/test/test_stix2.py b/stix2/test/test_stix2.py new file mode 100644 index 0000000..0ca98f9 --- /dev/null +++ b/stix2/test/test_stix2.py @@ -0,0 +1,8 @@ +"""Tests for the stix2 library""" + +import stix2 + + +def test_basic_indicator(): + indicator = stix2.Indicator() + assert indicator.id.startswith("indicator")