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

Method test_add_description

stix/test/incident_test.py:486–496  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

484 )
485
486 def test_add_description(self):
487 o1 = self.klass()
488 o2 = self.klass()
489
490 o1.add_description("Test")
491 o2.descriptions.add("Test")
492
493 self.assertEqual(
494 o1.descriptions.to_dict(),
495 o2.descriptions.to_dict()
496 )
497
498 def test_add_short_description(self):
499 o1 = self.klass()

Callers

nothing calls this directly

Calls 3

add_descriptionMethod · 0.45
addMethod · 0.45
to_dictMethod · 0.45

Tested by

no test coverage detected