예제 #1
0
def testStewardSuspensionByTrustee(looper, anotherTrustee, anotherSteward):
    trClient, trWallet = anotherTrustee
    _, stWallet = anotherSteward
    suspendRole(looper, trClient, trWallet, stWallet.defaultId)
    with pytest.raises(AssertionError):
        addRole(looper, *anotherSteward, name=randomString(), role=SPONSOR)
예제 #2
0
def testSponsorSuspensionByTrustee(looper, anotherTrustee, anotherSponsor):
    trClient, trWallet = anotherTrustee
    _, spWallet = anotherSponsor
    suspendRole(looper, trClient, trWallet, spWallet.defaultId)
    with pytest.raises(AssertionError):
        addRole(looper, *anotherSponsor, name=randomString())
예제 #3
0
def testTGBSuspensionByTrustee(looper, anotherTrustee, anotherTGB):
    trClient, trWallet = anotherTrustee
    _, tgbWallet = anotherTGB
    suspendRole(looper, trClient, trWallet, tgbWallet.defaultId)
    with pytest.raises(AssertionError):
        addRole(looper, *anotherTGB, name=randomString())
예제 #4
0
def testTrusteeAddingSponsor(looper, anotherSponsor):
    # The new TSponsor adds a NYM
    addRole(looper, *anotherSponsor, name=randomString())
예제 #5
0
def testTrusteeAddingSteward(looper, anotherSteward):
    # The new Steward adds a SPONSOR
    addRole(looper, *anotherSteward, name=randomString(), role=SPONSOR)
예제 #6
0
def testTrusteeAddingTGB(looper, anotherTGB):
    # The new TGB adds a NYM
    addRole(looper, *anotherTGB, name=randomString())
예제 #7
0
파일: conftest.py 프로젝트: ottodevs/sovrin
def userWalletB(nodeSet, addedSponsor, sponsorWallet, looper, sponsor):
    return addRole(looper, sponsor, sponsorWallet, 'userB', useDid=False)