Exemple #1
0
def thriftInviteLoadedByAlice(be, do, aliceCli, loadInviteOut, thriftMap,
                              jobCertClaimRequested, preRequisite):
    be(aliceCli)
    totalConnectionsBefore = getTotalConnections(aliceCli)
    do('load {invite}', expect=loadInviteOut, mapper=thriftMap)
    assert totalConnectionsBefore + 1 == getTotalConnections(aliceCli)
    return aliceCli
def acmeInviteLoadedByAlice(be, do, aliceCli, loadInviteOut, acmeMap):
    totalConnectionsBefore = getTotalConnections(aliceCli)
    be(aliceCli)
    do('load {invite}', expect=loadInviteOut, mapper=acmeMap)
    connection = aliceCli.activeWallet.getConnectionInvitation(
        acmeMap.get("inviter"))
    connection.remoteEndPoint = acmeMap.get(ENDPOINT)
    assert totalConnectionsBefore + 1 == getTotalConnections(aliceCli)
    return aliceCli
def faberInviteLoadedByAlice(be, do, aliceCli, loadInviteOut, faberMap):
    totalConnectionsBefore = getTotalConnections(aliceCli)
    be(aliceCli)
    do('load {invite}', expect=loadInviteOut, mapper=faberMap)
    assert totalConnectionsBefore + 1 == getTotalConnections(aliceCli)
    return aliceCli