def test_round_trip(self): text = StructuredText() text.value = "some text" text.structuring_format = "plain" text2 = cybox.test.round_trip(text) self.assertEqual(text.to_dict(), text2.to_dict())
def test_round_trip_manual(self): text = StructuredText() text.value = "some text" text.structuring_format = "plain" text2 = cybox.test.round_trip(text) self.assertEqual(text.to_dict(), text2.to_dict())