async def test_connection_invitation(): 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.connection_invitation_msg(context) assert msg['@type'] == '{};spec/{}/{}/{}'.format( EVERNYM_MSG_QUALIFIER, Relationship.MSG_FAMILY, Relationship.MSG_FAMILY_VERSION, Relationship.CONNECTION_INVITATION) assert msg['@id'] is not None assert msg['~thread'] is not None assert msg['~thread']['thid'] is not None assert msg['~for_relationship'] == 'RxRJCMe5XNqc9e9J1YPwhL'
async def test_connection_invitation(): context = await Context.create_with_config(await get_test_config()) relationship = Relationship(for_relationship=for_relationship, thread_id=thread_id, label=label) msg = relationship.connection_invitation_msg(context) print(msg) assert msg['@type'] == '{};spec/{}/{}/{}'.format( EVERNYM_MSG_QUALIFIER, Relationship.MSG_FAMILY, Relationship.MSG_FAMILY_VERSION, Relationship.CONNECTION_INVITATION) assert msg['@id'] is not None assert msg['~thread'] is not None assert msg['~thread']['thid'] is not None assert msg['~for_relationship'] == for_relationship assert 'shortInvite' not in msg