From 7ebf5ac7c77439ffc96a51f48bc5358593e3a4c8 Mon Sep 17 00:00:00 2001 From: clenk Date: Fri, 14 Jul 2017 15:30:19 -0400 Subject: [PATCH] Fix timestamp in test --- stix2/test/test_custom.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stix2/test/test_custom.py b/stix2/test/test_custom.py index 934e1ce..60e982c 100644 --- a/stix2/test/test_custom.py +++ b/stix2/test/test_custom.py @@ -2,6 +2,8 @@ import pytest import stix2 +from .constants import FAKE_TIME + def test_identity_custom_property(): with pytest.raises(ValueError): @@ -171,8 +173,8 @@ def test_observable_custom_property_allowed(): def test_observed_data_with_custom_observable_object(): no = NewObservable(property1='something') ob_data = stix2.ObservedData( - first_observed=stix2.utils.NOW, - last_observed=stix2.utils.NOW, + first_observed=FAKE_TIME, + last_observed=FAKE_TIME, number_observed=1, objects={'0': no}, allow_custom=True,