[WIP] Update tests.
parent
747f0307a7
commit
6d2cfcdedf
|
@ -5,10 +5,10 @@ import pytz
|
||||||
|
|
||||||
import stix2
|
import stix2
|
||||||
from stix2.other import TLP_WHITE
|
from stix2.other import TLP_WHITE
|
||||||
|
from stix2 import markings
|
||||||
|
|
||||||
from .constants import MARKING_DEFINITION_ID
|
from .constants import MARKING_DEFINITION_ID
|
||||||
|
|
||||||
|
|
||||||
EXPECTED_TLP_MARKING_DEFINITION = """{
|
EXPECTED_TLP_MARKING_DEFINITION = """{
|
||||||
"created": "2017-01-20T00:00:00Z",
|
"created": "2017-01-20T00:00:00Z",
|
||||||
"definition": {
|
"definition": {
|
||||||
|
@ -119,7 +119,8 @@ def test_campaign_with_granular_markings_example():
|
||||||
marking_ref="marking-definition--613f2e26-407d-48c7-9eca-b8e91df99dc9",
|
marking_ref="marking-definition--613f2e26-407d-48c7-9eca-b8e91df99dc9",
|
||||||
selectors=["description"])
|
selectors=["description"])
|
||||||
])
|
])
|
||||||
print(str(campaign))
|
print (markings.get_markings(campaign, None))
|
||||||
|
print (markings.add_markings(campaign, None, "marking-definition--00000000-0000-0000-0000-000000000000"))
|
||||||
assert str(campaign) == EXPECTED_CAMPAIGN_WITH_GRANULAR_MARKINGS
|
assert str(campaign) == EXPECTED_CAMPAIGN_WITH_GRANULAR_MARKINGS
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue