(self)
| 423 | self.assertEqual('Bar', categories[1].valueOf_) |
| 424 | |
| 425 | def test_description_output(self): |
| 426 | incident = incident_binding.IncidentType() |
| 427 | |
| 428 | assets = incident_binding.AffectedAssetsType() |
| 429 | asset = incident_binding.AffectedAssetType() |
| 430 | |
| 431 | description = StructuredText("A Description") |
| 432 | asset.Structured_Description = description.to_obj() |
| 433 | |
| 434 | assets.add_Affected_Asset(asset) |
| 435 | incident.Affected_Assets = assets |
| 436 | |
| 437 | s = StringIO() |
| 438 | |
| 439 | incident.export(s.write, 0, {'http://docs.oasis-open.org/cti/ns/stix/incident-1': 'incident'}) |
| 440 | xml = s.getvalue() |
| 441 | self.assertTrue("A Description" in xml, "Description not exported") |
| 442 | |
| 443 | def test_add_related_observable(self): |
| 444 | from cybox.core import Observable |
nothing calls this directly
no test coverage detected