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

Method test_add_description

stix/test/indicator_test.py:423–433  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

421 self._test_partial_dict(d)
422
423 def test_add_description(self):
424 o1 = self.klass()
425 o2 = self.klass()
426
427 o1.add_description("Test")
428 o2.descriptions.add("Test")
429
430 self.assertEqual(
431 o1.descriptions.to_dict(),
432 o2.descriptions.to_dict()
433 )
434
435 def test_add_short_description(self):
436 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