MCPcopy Create free account
hub / github.com/STIXProject/python-stix / add_ttp

Method add_ttp

stix/core/stix_package.py:177–183  ·  view source on GitHub ↗

Adds an :class:`.TTP` object to the :attr:`ttps` collection.

(self, ttp)

Source from the content-addressed store, hash-verified

175 self.exploit_targets.append(exploit_target)
176
177 def add_ttp(self, ttp):
178 """Adds an :class:`.TTP` object to the :attr:`ttps` collection.
179
180 """
181 if self.ttps is None:
182 self.ttps = TTPs()
183 self.ttps.append(ttp)
184
185 def add_report(self, report):
186 """Adds a :class:`.Report` object to the :attr:`reports` collection.

Callers

nothing calls this directly

Calls 1

TTPsClass · 0.85

Tested by

no test coverage detected