def test_nonstandard_type_vocab(self): ar = ActionRelationship() ar.type = ActionType("AddedMultipleTimes") ar.type.vocab_reference = "http://example.com/action-types/" ar.type.xsi_type = None ar2 = round_trip(ar) self.assertEqual(ar.to_dict(), ar2.to_dict())