def test_properties_not_in_inline(self): # https://github.com/CybOXProject/python-cybox/issues/287 o1 = Object(self.domain) o2 = Object(self.ip) o1.add_related(self.ip, "Resolved_To", inline=False) xml = o1.to_xml(encoding=None) print(xml) self.assertTrue(o1.id_ in xml) self.assertTrue(o2.id_ in xml) self.assertFalse(str(self.ip.address_value) in xml)