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 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 testTrusteeSuspensionByTrustee(looper, trustee, trusteeWallet, anotherTrustee, anotherSteward1): # trustee suspension by trustee is succeed trClient, trWallet = anotherTrustee suspendRole(looper, trustee, trusteeWallet, trWallet.defaultId) # trustee suspension by steward1 is failed _, sWallet = anotherSteward1 suspendRole(looper, trClient, trWallet, sWallet.defaultId, nAckReasonContains='is neither Trustee nor owner of')
def testTrusteeSuspensionByTrustee(looper, trustee, trusteeWallet, anotherTrustee, anotherSteward1): # trustee suspension by trustee is succeed trClient, trWallet = anotherTrustee suspendRole(looper, trustee, trusteeWallet, trWallet.defaultId) # trustee suspension by steward1 is failed _, sWallet = anotherSteward1 suspendRole(looper, trClient, trWallet, sWallet.defaultId, nAckReasonContains='is neither Trustee nor owner of')