diff --git a/stix2/__init__.py b/stix2/__init__.py
index 7be0904..53c2fb1 100644
--- a/stix2/__init__.py
+++ b/stix2/__init__.py
@@ -8,6 +8,8 @@ from .common import (TLP_AMBER, TLP_GREEN, TLP_RED, TLP_WHITE, CustomMarking,
                      MarkingDefinition, StatementMarking, TLPMarking)
 from .core import Bundle, _register_type, parse
 from .environment import Environment, ObjectFactory
+from .markings import (add_markings, clear_markings, get_markings, is_marked,
+                       remove_markings, set_markings)
 from .observables import (URL, AlternateDataStream, ArchiveExt, Artifact,
                           AutonomousSystem, CustomObservable, Directory,
                           DomainName, EmailAddress, EmailMessage,
diff --git a/stix2/common.py b/stix2/common.py
index a2e6918..d7994c6 100644
--- a/stix2/common.py
+++ b/stix2/common.py
@@ -3,6 +3,7 @@
 from collections import OrderedDict
 
 from .base import _STIXBase
+from .markings import MarkingsMixin
 from .properties import (HashesProperty, IDProperty, ListProperty, Property,
                          ReferenceProperty, SelectorProperty, StringProperty,
                          TimestampProperty, TypeProperty)
@@ -76,7 +77,7 @@ class MarkingProperty(Property):
             raise ValueError("must be a Statement, TLP Marking or a registered marking.")
 
 
-class MarkingDefinition(_STIXBase):
+class MarkingDefinition(_STIXBase, MarkingsMixin):
     _type = 'marking-definition'
     _properties = OrderedDict()
     _properties.update([
diff --git a/stix2/markings/__init__.py b/stix2/markings/__init__.py
index 4f72e4c..41c761d 100644
--- a/stix2/markings/__init__.py
+++ b/stix2/markings/__init__.py
@@ -212,3 +212,16 @@ def is_marked(obj, marking=None, selectors=None, inherited=False, descendants=Fa
         result = result or object_markings.is_marked(obj, object_marks)
 
     return result
+
+
+class MarkingsMixin():
+    pass
+
+
+# Note that all of these methods will return a new object because of immutability
+MarkingsMixin.get_markings = get_markings
+MarkingsMixin.set_markings = set_markings
+MarkingsMixin.remove_markings = remove_markings
+MarkingsMixin.add_markings = add_markings
+MarkingsMixin.clear_markings = clear_markings
+MarkingsMixin.is_marked = is_marked
diff --git a/stix2/markings/granular_markings.py b/stix2/markings/granular_markings.py
index 7e9ccc7..5afd1cc 100644
--- a/stix2/markings/granular_markings.py
+++ b/stix2/markings/granular_markings.py
@@ -88,6 +88,7 @@ def remove_markings(obj, marking, selectors):
 
     """
     selectors = utils.convert_to_list(selectors)
+    marking = utils.convert_to_marking_list(marking)
     utils.validate(obj, selectors)
 
     granular_markings = obj.get("granular_markings")
@@ -97,12 +98,9 @@ def remove_markings(obj, marking, selectors):
 
     granular_markings = utils.expand_markings(granular_markings)
 
-    if isinstance(marking, list):
-        to_remove = []
-        for m in marking:
-            to_remove.append({"marking_ref": m, "selectors": selectors})
-    else:
-        to_remove = [{"marking_ref": marking, "selectors": selectors}]
+    to_remove = []
+    for m in marking:
+        to_remove.append({"marking_ref": m, "selectors": selectors})
 
     remove = utils.build_granular_marking(to_remove).get("granular_markings")
 
@@ -140,14 +138,12 @@ def add_markings(obj, marking, selectors):
 
     """
     selectors = utils.convert_to_list(selectors)
+    marking = utils.convert_to_marking_list(marking)
     utils.validate(obj, selectors)
 
-    if isinstance(marking, list):
-        granular_marking = []
-        for m in marking:
-            granular_marking.append({"marking_ref": m, "selectors": sorted(selectors)})
-    else:
-        granular_marking = [{"marking_ref": marking, "selectors": sorted(selectors)}]
+    granular_marking = []
+    for m in marking:
+        granular_marking.append({"marking_ref": m, "selectors": sorted(selectors)})
 
     if obj.get("granular_markings"):
         granular_marking.extend(obj.get("granular_markings"))
@@ -244,7 +240,7 @@ def is_marked(obj, marking=None, selectors=None, inherited=False, descendants=Fa
         raise TypeError("Required argument 'selectors' must be provided")
 
     selectors = utils.convert_to_list(selectors)
-    marking = utils.convert_to_list(marking)
+    marking = utils.convert_to_marking_list(marking)
     utils.validate(obj, selectors)
 
     granular_markings = obj.get("granular_markings", [])
diff --git a/stix2/markings/object_markings.py b/stix2/markings/object_markings.py
index c39c036..a775ddc 100644
--- a/stix2/markings/object_markings.py
+++ b/stix2/markings/object_markings.py
@@ -31,7 +31,7 @@ def add_markings(obj, marking):
         A new version of the given SDO or SRO with specified markings added.
 
     """
-    marking = utils.convert_to_list(marking)
+    marking = utils.convert_to_marking_list(marking)
 
     object_markings = set(obj.get("object_marking_refs", []) + marking)
 
@@ -55,7 +55,7 @@ def remove_markings(obj, marking):
         A new version of the given SDO or SRO with specified markings removed.
 
     """
-    marking = utils.convert_to_list(marking)
+    marking = utils.convert_to_marking_list(marking)
 
     object_markings = obj.get("object_marking_refs", [])
 
@@ -121,7 +121,7 @@ def is_marked(obj, marking=None):
         provided marking refs match, True is returned.
 
     """
-    marking = utils.convert_to_list(marking)
+    marking = utils.convert_to_marking_list(marking)
     object_markings = obj.get("object_marking_refs", [])
 
     if marking:
diff --git a/stix2/markings/utils.py b/stix2/markings/utils.py
index d0d38bb..1154d19 100644
--- a/stix2/markings/utils.py
+++ b/stix2/markings/utils.py
@@ -37,6 +37,12 @@ def _validate_selector(obj, selector):
         return True
 
 
+def _get_marking_id(marking):
+    if type(marking).__name__ is 'MarkingDefinition':  # avoid circular import
+        return marking.id
+    return marking
+
+
 def validate(obj, selectors):
     """Given an SDO or SRO, check that each selector is valid."""
     if selectors:
@@ -57,6 +63,15 @@ def convert_to_list(data):
             return [data]
 
 
+def convert_to_marking_list(data):
+    """Convert input into a list of marking identifiers."""
+    if data is not None:
+        if isinstance(data, list):
+            return [_get_marking_id(x) for x in data]
+        else:
+            return [_get_marking_id(data)]
+
+
 def compress_markings(granular_markings):
     """
     Compress granular markings list. If there is more than one marking
diff --git a/stix2/sdo.py b/stix2/sdo.py
index 77c781a..53f965d 100644
--- a/stix2/sdo.py
+++ b/stix2/sdo.py
@@ -6,6 +6,7 @@ import stix2
 
 from .base import _STIXBase
 from .common import ExternalReference, GranularMarking, KillChainPhase
+from .markings import MarkingsMixin
 from .observables import ObservableProperty
 from .properties import (BooleanProperty, IDProperty, IntegerProperty,
                          ListProperty, PatternProperty, ReferenceProperty,
@@ -13,7 +14,11 @@ from .properties import (BooleanProperty, IDProperty, IntegerProperty,
 from .utils import NOW
 
 
-class AttackPattern(_STIXBase):
+class STIXDomainObject(_STIXBase, MarkingsMixin):
+    pass
+
+
+class AttackPattern(STIXDomainObject):
 
     _type = 'attack-pattern'
     _properties = OrderedDict()
@@ -34,7 +39,7 @@ class AttackPattern(_STIXBase):
     ])
 
 
-class Campaign(_STIXBase):
+class Campaign(STIXDomainObject):
 
     _type = 'campaign'
     _properties = OrderedDict()
@@ -58,7 +63,7 @@ class Campaign(_STIXBase):
     ])
 
 
-class CourseOfAction(_STIXBase):
+class CourseOfAction(STIXDomainObject):
 
     _type = 'course-of-action'
     _properties = OrderedDict()
@@ -78,7 +83,7 @@ class CourseOfAction(_STIXBase):
     ])
 
 
-class Identity(_STIXBase):
+class Identity(STIXDomainObject):
 
     _type = 'identity'
     _properties = OrderedDict()
@@ -101,7 +106,7 @@ class Identity(_STIXBase):
     ])
 
 
-class Indicator(_STIXBase):
+class Indicator(STIXDomainObject):
 
     _type = 'indicator'
     _properties = OrderedDict()
@@ -125,7 +130,7 @@ class Indicator(_STIXBase):
     ])
 
 
-class IntrusionSet(_STIXBase):
+class IntrusionSet(STIXDomainObject):
 
     _type = 'intrusion-set'
     _properties = OrderedDict()
@@ -152,7 +157,7 @@ class IntrusionSet(_STIXBase):
     ])
 
 
-class Malware(_STIXBase):
+class Malware(STIXDomainObject):
 
     _type = 'malware'
     _properties = OrderedDict()
@@ -173,7 +178,7 @@ class Malware(_STIXBase):
     ])
 
 
-class ObservedData(_STIXBase):
+class ObservedData(STIXDomainObject):
 
     _type = 'observed-data'
     _properties = OrderedDict()
@@ -195,7 +200,7 @@ class ObservedData(_STIXBase):
     ])
 
 
-class Report(_STIXBase):
+class Report(STIXDomainObject):
 
     _type = 'report'
     _properties = OrderedDict()
@@ -217,7 +222,7 @@ class Report(_STIXBase):
     ])
 
 
-class ThreatActor(_STIXBase):
+class ThreatActor(STIXDomainObject):
 
     _type = 'threat-actor'
     _properties = OrderedDict()
@@ -245,7 +250,7 @@ class ThreatActor(_STIXBase):
     ])
 
 
-class Tool(_STIXBase):
+class Tool(STIXDomainObject):
 
     _type = 'tool'
     _properties = OrderedDict()
@@ -267,7 +272,7 @@ class Tool(_STIXBase):
     ])
 
 
-class Vulnerability(_STIXBase):
+class Vulnerability(STIXDomainObject):
 
     _type = 'vulnerability'
     _properties = OrderedDict()
@@ -316,7 +321,7 @@ def CustomObject(type='x-custom-type', properties=None):
 
     def custom_builder(cls):
 
-        class _Custom(cls, _STIXBase):
+        class _Custom(cls, STIXDomainObject):
             _type = type
             _properties = OrderedDict()
             _properties.update([
diff --git a/stix2/sro.py b/stix2/sro.py
index af483bc..4fa0465 100644
--- a/stix2/sro.py
+++ b/stix2/sro.py
@@ -4,13 +4,18 @@ from collections import OrderedDict
 
 from .base import _STIXBase
 from .common import ExternalReference, GranularMarking
+from .markings import MarkingsMixin
 from .properties import (BooleanProperty, IDProperty, IntegerProperty,
                          ListProperty, ReferenceProperty, StringProperty,
                          TimestampProperty, TypeProperty)
 from .utils import NOW
 
 
-class Relationship(_STIXBase):
+class STIXRelationshipObject(_STIXBase, MarkingsMixin):
+    pass
+
+
+class Relationship(STIXRelationshipObject):
 
     _type = 'relationship'
     _properties = OrderedDict()
@@ -45,7 +50,7 @@ class Relationship(_STIXBase):
         super(Relationship, self).__init__(**kwargs)
 
 
-class Sighting(_STIXBase):
+class Sighting(STIXRelationshipObject):
     _type = 'sighting'
     _properties = OrderedDict()
     _properties.update([

Improve Data Markings Ease-of-Use
Some ideas I had while writing documentation, for how to make data markings a little easier to use:

- [ ] Maybe `StatementMarking()` should return a `MarkingDefinition` object and not require the user to create both a `MarkingDefinition` and `StatementMarking` object. Would a user ever create a `StatementMarking` object without also creating a `MarkingDefinition`?
- [x] We should add a shortcut to be able to call `add_markings()` (and the other marking functions) on STIX objects. So for example
	```indicator.remove_markings('marking--id')```
	instead of
	```markings.remove_markings(indicator, 'marking--id')```
As we implement these, be explicit that they return *new* versions of the objects since they are immutable.
- [x] stix2/\_\_init\_\_.py should import the functions from stix2.markings so they're in the top-level 
namespace.
- [x] `add_markings()` and `remove_markings()` should support passing in a `MarkingDefinition` object, not just an ID string.
diff --git a/stix2/test/test_granular_markings.py b/stix2/test/test_granular_markings.py
index e910ad3..f8fc803 100644
--- a/stix2/test/test_granular_markings.py
+++ b/stix2/test/test_granular_markings.py
@@ -1,7 +1,7 @@
 
 import pytest
 
-from stix2 import Malware, markings
+from stix2 import TLP_RED, Malware, markings
 
 from .constants import MALWARE_MORE_KWARGS as MALWARE_KWARGS_CONST
 from .constants import MARKING_IDS
@@ -45,6 +45,7 @@ def test_add_marking_mark_one_selector_multiple_refs():
                 },
             ],
             **MALWARE_KWARGS),
+        MARKING_IDS[0],
     ),
     (
         MALWARE_KWARGS,
@@ -56,13 +57,26 @@ def test_add_marking_mark_one_selector_multiple_refs():
                 },
             ],
             **MALWARE_KWARGS),
+        MARKING_IDS[0],
+    ),
+    (
+        Malware(**MALWARE_KWARGS),
+        Malware(
+            granular_markings=[
+                {
+                    "selectors": ["description", "name"],
+                    "marking_ref": TLP_RED.id,
+                },
+            ],
+            **MALWARE_KWARGS),
+        TLP_RED,
     ),
 ])
 def test_add_marking_mark_multiple_selector_one_refs(data):
     before = data[0]
     after = data[1]
 
-    before = markings.add_markings(before, [MARKING_IDS[0]], ["description", "name"])
+    before = markings.add_markings(before, data[2], ["description", "name"])
 
     for m in before["granular_markings"]:
         assert m in after["granular_markings"]
@@ -347,36 +361,42 @@ def test_get_markings_positional_arguments_combinations(data):
     assert set(markings.get_markings(data, "x.z.foo2", False, True)) == set(["10"])
 
 
-@pytest.mark.parametrize("before", [
-    Malware(
-        granular_markings=[
-            {
-                "selectors": ["description"],
-                "marking_ref": MARKING_IDS[0]
-            },
-            {
-                "selectors": ["description"],
-                "marking_ref": MARKING_IDS[1]
-            },
-        ],
-        **MALWARE_KWARGS
+@pytest.mark.parametrize("data", [
+    (
+        Malware(
+            granular_markings=[
+                {
+                    "selectors": ["description"],
+                    "marking_ref": MARKING_IDS[0]
+                },
+                {
+                    "selectors": ["description"],
+                    "marking_ref": MARKING_IDS[1]
+                },
+            ],
+            **MALWARE_KWARGS
+        ),
+        [MARKING_IDS[0], MARKING_IDS[1]],
     ),
-    dict(
-        granular_markings=[
-            {
-                "selectors": ["description"],
-                "marking_ref": MARKING_IDS[0]
-            },
-            {
-                "selectors": ["description"],
-                "marking_ref": MARKING_IDS[1]
-            },
-        ],
-        **MALWARE_KWARGS
+    (
+        dict(
+            granular_markings=[
+                {
+                    "selectors": ["description"],
+                    "marking_ref": MARKING_IDS[0]
+                },
+                {
+                    "selectors": ["description"],
+                    "marking_ref": MARKING_IDS[1]
+                },
+            ],
+            **MALWARE_KWARGS
+        ),
+        [MARKING_IDS[0], MARKING_IDS[1]],
     ),
 ])
-def test_remove_marking_remove_one_selector_with_multiple_refs(before):
-    before = markings.remove_markings(before, [MARKING_IDS[0], MARKING_IDS[1]], ["description"])
+def test_remove_marking_remove_one_selector_with_multiple_refs(data):
+    before = markings.remove_markings(data[0], data[1], ["description"])
     assert "granular_markings" not in before
 
 
diff --git a/stix2/test/test_markings.py b/stix2/test/test_markings.py
index 0c6069a..456bf92 100644
--- a/stix2/test/test_markings.py
+++ b/stix2/test/test_markings.py
@@ -241,4 +241,14 @@ def test_marking_wrong_type_construction():
     assert str(excinfo.value) == "Must supply a list, containing tuples. For example, [('property1', IntegerProperty())]"
 
 
-# TODO: Add other examples
+def test_campaign_add_markings():
+    campaign = stix2.Campaign(
+        id="campaign--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f",
+        created_by_ref="identity--f431f809-377b-45e0-aa1c-6a4751cae5ff",
+        created="2016-04-06T20:03:00Z",
+        modified="2016-04-06T20:03:00Z",
+        name="Green Group Attacks Against Finance",
+        description="Campaign by Green Group against a series of targets in the financial services sector.",
+    )
+    campaign = campaign.add_markings(TLP_WHITE)
+    assert campaign.object_marking_refs[0] == TLP_WHITE.id
diff --git a/stix2/test/test_object_markings.py b/stix2/test/test_object_markings.py
index 36e8e4d..10949ab 100644
--- a/stix2/test/test_object_markings.py
+++ b/stix2/test/test_object_markings.py
@@ -1,7 +1,7 @@
 
 import pytest
 
-from stix2 import Malware, exceptions, markings
+from stix2 import TLP_AMBER, Malware, exceptions, markings
 
 from .constants import FAKE_TIME, MALWARE_ID, MARKING_IDS
 from .constants import MALWARE_KWARGS as MALWARE_KWARGS_CONST
@@ -21,18 +21,26 @@ MALWARE_KWARGS.update({
         Malware(**MALWARE_KWARGS),
         Malware(object_marking_refs=[MARKING_IDS[0]],
                 **MALWARE_KWARGS),
+        MARKING_IDS[0],
     ),
     (
         MALWARE_KWARGS,
         dict(object_marking_refs=[MARKING_IDS[0]],
              **MALWARE_KWARGS),
+        MARKING_IDS[0],
+    ),
+    (
+        Malware(**MALWARE_KWARGS),
+        Malware(object_marking_refs=[TLP_AMBER.id],
+                **MALWARE_KWARGS),
+        TLP_AMBER,
     ),
 ])
 def test_add_markings_one_marking(data):
     before = data[0]
     after = data[1]
 
-    before = markings.add_markings(before, MARKING_IDS[0], None)
+    before = markings.add_markings(before, data[2], None)
 
     for m in before["object_marking_refs"]:
         assert m in after["object_marking_refs"]
@@ -280,19 +288,28 @@ def test_remove_markings_object_level(data):
                 **MALWARE_KWARGS),
         Malware(object_marking_refs=[MARKING_IDS[1]],
                 **MALWARE_KWARGS),
+        [MARKING_IDS[0], MARKING_IDS[2]],
     ),
     (
         dict(object_marking_refs=[MARKING_IDS[0], MARKING_IDS[1], MARKING_IDS[2]],
              **MALWARE_KWARGS),
         dict(object_marking_refs=[MARKING_IDS[1]],
              **MALWARE_KWARGS),
+        [MARKING_IDS[0], MARKING_IDS[2]],
+    ),
+    (
+        Malware(object_marking_refs=[MARKING_IDS[0], MARKING_IDS[1], TLP_AMBER.id],
+                **MALWARE_KWARGS),
+        Malware(object_marking_refs=[MARKING_IDS[1]],
+                **MALWARE_KWARGS),
+        [MARKING_IDS[0], TLP_AMBER],
     ),
 ])
 def test_remove_markings_multiple(data):
     before = data[0]
     after = data[1]
 
-    before = markings.remove_markings(before, [MARKING_IDS[0], MARKING_IDS[2]], None)
+    before = markings.remove_markings(before, data[2], None)
 
     assert before['object_marking_refs'] == after['object_marking_refs']
 

pip install -e .
parse_log_pytest
requirements.txt
pytest pytest-cov flake8 pycodestyle isort
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.13
antlr4-python3-runtime==4.9.3
appdirs==1.4.4
attrs==21.4.0
Babel==2.11.0
bump2version==1.0.1
bumpversion==0.6.0
certifi==2021.5.30
cfgv==3.3.1
charset-normalizer==2.0.12
colorama==0.4.5
coverage==6.2
cpe==1.3.1
distlib==0.3.9
docutils==0.18.1
filelock==3.4.1
flake8==5.0.4
identify==2.4.4
idna==3.10
imagesize==1.4.1
importlib-metadata==4.2.0
importlib-resources==5.2.3
iniconfig==1.1.1
isort==5.10.1
itsdangerous==2.0.1
Jinja2==3.0.3
jsonpointer==2.3
jsonschema==3.2.0
MarkupSafe==2.0.1
mccabe==0.7.0
nodeenv==1.6.0
packaging==21.3
platformdirs==2.4.0
pluggy==1.0.0
pre-commit==2.17.0
py==1.11.0
pycodestyle==2.9.1
pyflakes==2.5.0
Pygments==2.14.0
pyparsing==3.1.4
pyrsistent==0.18.0
pytest==7.0.1
pytest-cov==4.0.0
python-dateutil==2.9.0.post0
pytz==2025.2
PyYAML==6.0.1
requests==2.27.1
requests-cache==0.7.5
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
simplejson==3.20.1
six==1.17.0
snowballstemmer==2.2.0
Sphinx==5.3.0
sphinx-prompt==1.5.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
-e git+https://github.com/oasis-open/cti-python-stix2.git@e2151659d7d68d9c6878f050e52d5d1af6bb0fd6#egg=stix2
stix2-patterns==2.0.0
stix2-validator==3.0.2
taxii2-client==2.3.0
toml==0.10.2
tomli==1.2.3
tox==3.28.0
typing_extensions==4.1.1
url-normalize==1.4.3
urllib3==1.26.20
virtualenv==20.16.2
webcolors==1.11.1
zipp==3.6.0

name: cti-python-stix2
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.13
      - antlr4-python3-runtime==4.9.3
      - appdirs==1.4.4
      - attrs==21.4.0
      - babel==2.11.0
      - bump2version==1.0.1
      - bumpversion==0.6.0
      - cfgv==3.3.1
      - charset-normalizer==2.0.12
      - colorama==0.4.5
      - coverage==6.2
      - cpe==1.3.1
      - distlib==0.3.9
      - docutils==0.18.1
      - filelock==3.4.1
      - flake8==5.0.4
      - identify==2.4.4
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==4.2.0
      - importlib-resources==5.2.3
      - iniconfig==1.1.1
      - isort==5.10.1
      - itsdangerous==2.0.1
      - jinja2==3.0.3
      - jsonpointer==2.3
      - jsonschema==3.2.0
      - markupsafe==2.0.1
      - mccabe==0.7.0
      - nodeenv==1.6.0
      - packaging==21.3
      - platformdirs==2.4.0
      - pluggy==1.0.0
      - pre-commit==2.17.0
      - py==1.11.0
      - pycodestyle==2.9.1
      - pyflakes==2.5.0
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pyrsistent==0.18.0
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - pyyaml==6.0.1
      - requests==2.27.1
      - requests-cache==0.7.5
      - rfc3339-validator==0.1.4
      - rfc3986-validator==0.1.1
      - simplejson==3.20.1
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sphinx==5.3.0
      - sphinx-prompt==1.5.0
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - stix2-patterns==2.0.0
      - stix2-validator==3.0.2
      - taxii2-client==2.3.0
      - toml==0.10.2
      - tomli==1.2.3
      - tox==3.28.0
      - typing-extensions==4.1.1
      - url-normalize==1.4.3
      - urllib3==1.26.20
      - virtualenv==20.16.2
      - webcolors==1.11.1
      - zipp==3.6.0
prefix: /opt/conda/envs/cti-python-stix2

stix2/test/test_granular_markings.py::test_add_marking_mark_multiple_selector_one_refs[data2] stix2/test/test_markings.py::test_campaign_add_markings stix2/test/test_object_markings.py::test_add_markings_one_marking[data2] stix2/test/test_object_markings.py::test_remove_markings_multiple[data2]
stix2/test/test_granular_markings.py::test_add_marking_mark_one_selector_multiple_refs stix2/test/test_granular_markings.py::test_add_marking_mark_multiple_selector_one_refs[data0] stix2/test/test_granular_markings.py::test_add_marking_mark_multiple_selector_one_refs[data1] stix2/test/test_granular_markings.py::test_add_marking_mark_multiple_selector_multiple_refs stix2/test/test_granular_markings.py::test_add_marking_mark_another_property_same_marking stix2/test/test_granular_markings.py::test_add_marking_mark_same_property_same_marking stix2/test/test_granular_markings.py::test_add_marking_bad_selector[data0-marking0] stix2/test/test_granular_markings.py::test_get_markings_smoke[data0] stix2/test/test_granular_markings.py::test_get_markings_not_marked[data0] stix2/test/test_granular_markings.py::test_get_markings_not_marked[data1] stix2/test/test_granular_markings.py::test_get_markings_multiple_selectors[data0] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data0-foo] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data1-] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data2-selector2] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data3-selector3] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data4-x.z.[-2]] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data5-c.f] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data6-c.[2].i] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data7-c.[3]] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data8-d] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data9-x.[0]] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data10-z.y.w] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data11-x.z.[1]] stix2/test/test_granular_markings.py::test_get_markings_bad_selector[data12-x.z.foo3] stix2/test/test_granular_markings.py::test_get_markings_positional_arguments_combinations[data0] stix2/test/test_granular_markings.py::test_remove_marking_remove_one_selector_with_multiple_refs[data0] stix2/test/test_granular_markings.py::test_remove_marking_remove_one_selector_with_multiple_refs[data1] stix2/test/test_granular_markings.py::test_remove_marking_remove_multiple_selector_one_ref stix2/test/test_granular_markings.py::test_remove_marking_mark_one_selector_from_multiple_ones stix2/test/test_granular_markings.py::test_remove_marking_mark_one_selector_markings_from_multiple_ones stix2/test/test_granular_markings.py::test_remove_marking_mark_mutilple_selector_multiple_refs stix2/test/test_granular_markings.py::test_remove_marking_mark_another_property_same_marking stix2/test/test_granular_markings.py::test_remove_marking_mark_same_property_same_marking stix2/test/test_granular_markings.py::test_remove_no_markings stix2/test/test_granular_markings.py::test_remove_marking_bad_selector stix2/test/test_granular_markings.py::test_is_marked_smoke[data0] stix2/test/test_granular_markings.py::test_is_marked_smoke[data1] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data0-foo] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data1-] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data2-selector2] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data3-selector3] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data4-x.z.[-2]] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data5-c.f] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data6-c.[2].i] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data7-c.[3]] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data8-d] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data9-x.[0]] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data10-z.y.w] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data11-x.z.[1]] stix2/test/test_granular_markings.py::test_is_marked_invalid_selector[data12-x.z.foo3] stix2/test/test_granular_markings.py::test_is_marked_mix_selector[data0] stix2/test/test_granular_markings.py::test_is_marked_mix_selector[data1] stix2/test/test_granular_markings.py::test_is_marked_valid_selector_no_refs[data0] stix2/test/test_granular_markings.py::test_is_marked_valid_selector_no_refs[data1] stix2/test/test_granular_markings.py::test_is_marked_valid_selector_and_refs[data0] stix2/test/test_granular_markings.py::test_is_marked_valid_selector_and_refs[data1] stix2/test/test_granular_markings.py::test_is_marked_valid_selector_multiple_refs[data0] stix2/test/test_granular_markings.py::test_is_marked_valid_selector_multiple_refs[data1] stix2/test/test_granular_markings.py::test_is_marked_no_marking_refs[data0] stix2/test/test_granular_markings.py::test_is_marked_no_marking_refs[data1] stix2/test/test_granular_markings.py::test_is_marked_no_selectors[data0] stix2/test/test_granular_markings.py::test_is_marked_no_selectors[data1] stix2/test/test_granular_markings.py::test_is_marked_positional_arguments_combinations stix2/test/test_granular_markings.py::test_create_sdo_with_invalid_marking stix2/test/test_granular_markings.py::test_set_marking_mark_one_selector_multiple_refs stix2/test/test_granular_markings.py::test_set_marking_mark_multiple_selector_one_refs stix2/test/test_granular_markings.py::test_set_marking_mark_multiple_selector_multiple_refs_from_none stix2/test/test_granular_markings.py::test_set_marking_mark_another_property_same_marking stix2/test/test_granular_markings.py::test_set_marking_bad_selector[marking0] stix2/test/test_granular_markings.py::test_set_marking_bad_selector[marking1] stix2/test/test_granular_markings.py::test_set_marking_bad_selector[marking2] stix2/test/test_granular_markings.py::test_set_marking_bad_selector[marking3] stix2/test/test_granular_markings.py::test_set_marking_mark_same_property_same_marking stix2/test/test_granular_markings.py::test_clear_marking_smoke[data0] stix2/test/test_granular_markings.py::test_clear_marking_smoke[data1] stix2/test/test_granular_markings.py::test_clear_marking_multiple_selectors[data0] stix2/test/test_granular_markings.py::test_clear_marking_multiple_selectors[data1] stix2/test/test_granular_markings.py::test_clear_marking_one_selector[data0] stix2/test/test_granular_markings.py::test_clear_marking_one_selector[data1] stix2/test/test_granular_markings.py::test_clear_marking_all_selectors[data0] stix2/test/test_granular_markings.py::test_clear_marking_all_selectors[data1] stix2/test/test_granular_markings.py::test_clear_marking_bad_selector[data0-foo] stix2/test/test_granular_markings.py::test_clear_marking_bad_selector[data1-] stix2/test/test_granular_markings.py::test_clear_marking_bad_selector[data2-selector2] stix2/test/test_granular_markings.py::test_clear_marking_bad_selector[data3-selector3] stix2/test/test_markings.py::test_marking_def_example_with_tlp stix2/test/test_markings.py::test_marking_def_example_with_statement_positional_argument stix2/test/test_markings.py::test_marking_def_example_with_kwargs_statement stix2/test/test_markings.py::test_marking_def_invalid_type stix2/test/test_markings.py::test_campaign_with_markings_example stix2/test/test_markings.py::test_granular_example stix2/test/test_markings.py::test_granular_example_with_bad_selector stix2/test/test_markings.py::test_campaign_with_granular_markings_example stix2/test/test_markings.py::test_parse_marking_definition[{\n stix2/test/test_markings.py::test_parse_marking_definition[data1] stix2/test/test_markings.py::test_registered_custom_marking stix2/test/test_markings.py::test_not_registered_marking_raises_exception stix2/test/test_markings.py::test_marking_wrong_type_construction stix2/test/test_object_markings.py::test_add_markings_one_marking[data0] stix2/test/test_object_markings.py::test_add_markings_one_marking[data1] stix2/test/test_object_markings.py::test_add_markings_multiple_marking stix2/test/test_object_markings.py::test_add_markings_combination stix2/test/test_object_markings.py::test_add_markings_bad_markings[data0] stix2/test/test_object_markings.py::test_add_markings_bad_markings[] stix2/test/test_object_markings.py::test_add_markings_bad_markings[data2] stix2/test/test_object_markings.py::test_add_markings_bad_markings[data3] stix2/test/test_object_markings.py::test_get_markings_object_marking[data0] stix2/test/test_object_markings.py::test_get_markings_object_and_granular_combinations[data0] stix2/test/test_object_markings.py::test_remove_markings_object_level[data0] stix2/test/test_object_markings.py::test_remove_markings_object_level[data1] stix2/test/test_object_markings.py::test_remove_markings_multiple[data0] stix2/test/test_object_markings.py::test_remove_markings_multiple[data1] stix2/test/test_object_markings.py::test_remove_markings_bad_markings stix2/test/test_object_markings.py::test_clear_markings[data0] stix2/test/test_object_markings.py::test_clear_markings[data1] stix2/test/test_object_markings.py::test_is_marked_object_and_granular_combinations stix2/test/test_object_markings.py::test_is_marked_no_markings[data0] stix2/test/test_object_markings.py::test_is_marked_no_markings[data1] stix2/test/test_object_markings.py::test_set_marking stix2/test/test_object_markings.py::test_set_marking_bad_input[data0] stix2/test/test_object_markings.py::test_set_marking_bad_input[data1] stix2/test/test_object_markings.py::test_set_marking_bad_input[] stix2/test/test_object_markings.py::test_set_marking_bad_input[data3]
stix2/common.py stix2/sdo.py stix2/markings/__init__.py stix2/sro.py stix2/markings/granular_markings.py stix2/__init__.py stix2/markings/utils.py stix2/markings/object_markings.py
stix2/common.py stix2/sdo.py stix2/markings/__init__.py stix2/sro.py stix2/markings/granular_markings.py stix2/__init__.py stix2/markings/utils.py stix2/markings/object_markings.py