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)
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())
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())
def testTrusteeAddingSponsor(looper, anotherSponsor): # The new TSponsor adds a NYM addRole(looper, *anotherSponsor, name=randomString())
def testTrusteeAddingSteward(looper, anotherSteward): # The new Steward adds a SPONSOR addRole(looper, *anotherSteward, name=randomString(), role=SPONSOR)
def testTrusteeAddingTGB(looper, anotherTGB): # The new TGB adds a NYM addRole(looper, *anotherTGB, name=randomString())
def userWalletB(nodeSet, addedSponsor, sponsorWallet, looper, sponsor): return addRole(looper, sponsor, sponsorWallet, 'userB', useDid=False)