示例#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
def userWalletB(nodeSet, addedSponsor, sponsorWallet, looper, sponsor):
    return addRole(looper, sponsor, sponsorWallet, 'userB', useDid=False)