Initial tests for STIX 2
parent
86585d229e
commit
2f8c2780c2
|
@ -0,0 +1,7 @@
|
|||
import uuid
|
||||
|
||||
|
||||
class Indicator:
|
||||
|
||||
def __init__(self):
|
||||
self.id = "indicator--" + str(uuid.uuid4())
|
|
@ -0,0 +1,8 @@
|
|||
"""Tests for the stix2 library"""
|
||||
|
||||
import stix2
|
||||
|
||||
|
||||
def test_basic_indicator():
|
||||
indicator = stix2.Indicator()
|
||||
assert indicator.id.startswith("indicator")
|
Loading…
Reference in New Issue