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=TRUST_ANCHOR)
def testTrustAnchorSuspensionByTrustee(looper, anotherTrustee, anotherTrustAnchor): trClient, trWallet = anotherTrustee _, spWallet = anotherTrustAnchor suspendRole(looper, trClient, trWallet, spWallet.defaultId) with pytest.raises(AssertionError): addRole(looper, *anotherTrustAnchor, name=randomString())
def testTrustAnchorSuspensionByTrustee( looper, anotherTrustee, anotherTrustAnchor): trClient, trWallet = anotherTrustee _, spWallet = anotherTrustAnchor suspendRole(looper, trClient, trWallet, spWallet.defaultId) with pytest.raises(AssertionError): addRole(looper, *anotherTrustAnchor, name=randomString())
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=TRUST_ANCHOR)
def userWalletB(nodeSet, addedTrustAnchor, trustAnchorWallet, looper, trustAnchor): return addRole(looper, trustAnchor, trustAnchorWallet, 'userB', addVerkey=False)
def testTrusteeAddingTrustAnchor(looper, anotherTrustAnchor): # The new TTrustAnchor adds a NYM addRole(looper, *anotherTrustAnchor, name=randomString())
def testTrusteeAddingSteward(looper, anotherSteward): # The new Steward adds a TRUST_ANCHOR addRole(looper, *anotherSteward, name=randomString(), role=TRUST_ANCHOR)
def testTrusteeAddingTGB(looper, anotherTGB): # The new TGB adds a NYM addRole(looper, *anotherTGB, name=randomString())
def testTrusteeAddingTrustAnchor(looper, anotherTrustAnchor): # The new TTrustAnchor adds a NYM addRole(looper, *anotherTrustAnchor, name=randomString())
def testTrusteeAddingSteward(looper, anotherSteward): # The new Steward adds a TRUST_ANCHOR addRole(looper, *anotherSteward, name=randomString(), role=TRUST_ANCHOR)
def testTrusteeAddingTGB(looper, anotherTGB): # The new TGB adds a NYM addRole(looper, *anotherTGB, name=randomString())
def userWalletB(nodeSet, addedTrustAnchor, trustAnchorWallet, looper, trustAnchor): return addRole(looper, trustAnchor, trustAnchorWallet, 'userB', addVerkey=False)