Fix timestamp in test
parent
e1330692c8
commit
7ebf5ac7c7
|
@ -2,6 +2,8 @@ import pytest
|
||||||
|
|
||||||
import stix2
|
import stix2
|
||||||
|
|
||||||
|
from .constants import FAKE_TIME
|
||||||
|
|
||||||
|
|
||||||
def test_identity_custom_property():
|
def test_identity_custom_property():
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
|
@ -171,8 +173,8 @@ def test_observable_custom_property_allowed():
|
||||||
def test_observed_data_with_custom_observable_object():
|
def test_observed_data_with_custom_observable_object():
|
||||||
no = NewObservable(property1='something')
|
no = NewObservable(property1='something')
|
||||||
ob_data = stix2.ObservedData(
|
ob_data = stix2.ObservedData(
|
||||||
first_observed=stix2.utils.NOW,
|
first_observed=FAKE_TIME,
|
||||||
last_observed=stix2.utils.NOW,
|
last_observed=FAKE_TIME,
|
||||||
number_observed=1,
|
number_observed=1,
|
||||||
objects={'0': no},
|
objects={'0': no},
|
||||||
allow_custom=True,
|
allow_custom=True,
|
||||||
|
|
Loading…
Reference in New Issue