Exemplo n.º 1
0
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())
Exemplo n.º 2
0
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())
Exemplo n.º 3
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=TRUST_ANCHOR)
Exemplo n.º 4
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=TRUST_ANCHOR)
Exemplo n.º 5
0
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')
Exemplo n.º 6
0
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')