async def test_create(): context = await Context.create_with_config(await get_test_config()) relationship = Relationship( for_relationship='RxRJCMe5XNqc9e9J1YPwhL', thread_id='7a80285e-896c-45f6-b386-39ed7c49230c', label='test') msg = relationship.create_msg(context) assert msg['@type'] == '{};spec/{}/{}/{}'.format( EVERNYM_MSG_QUALIFIER, Relationship.MSG_FAMILY, Relationship.MSG_FAMILY_VERSION, Relationship.CREATE) assert msg['@id'] is not None assert msg['~thread'] is not None assert msg['~thread']['thid'] is not None assert msg['label'] == 'test'
async def test_create(): context = await Context.create_with_config(await get_test_config()) relationship = Relationship(for_relationship=for_relationship, thread_id=thread_id, label=label) msg = relationship.create_msg(context) assert msg['@type'] == '{};spec/{}/{}/{}'.format( EVERNYM_MSG_QUALIFIER, Relationship.MSG_FAMILY, Relationship.MSG_FAMILY_VERSION, Relationship.CREATE) assert msg['@id'] is not None assert msg['~thread'] is not None assert msg['~thread']['thid'] is not None assert msg['label'] == label assert 'logoUrl' not in msg assert 'phoneNumber' not in msg