Initial tests for STIX 2

stix2.1
Greg Back 2017-01-17 12:37:47 -08:00
parent 86585d229e
commit 2f8c2780c2
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import uuid
class Indicator:
def __init__(self):
self.id = "indicator--" + str(uuid.uuid4())

8
stix2/test/test_stix2.py Normal file
View File

@ -0,0 +1,8 @@
"""Tests for the stix2 library"""
import stix2
def test_basic_indicator():
indicator = stix2.Indicator()
assert indicator.id.startswith("indicator")