コード例 #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=TRUST_ANCHOR)
コード例 #2
0
ファイル: test_suspension.py プロジェクト: snowy13/indy-node
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())
コード例 #3
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())
コード例 #4
0
ファイル: test_suspension.py プロジェクト: snowy13/indy-node
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)
コード例 #5
0
ファイル: conftest.py プロジェクト: zmh0531/indy-node
def userWalletB(nodeSet, addedTrustAnchor, trustAnchorWallet, looper,
                trustAnchor):
    return addRole(looper,
                   trustAnchor,
                   trustAnchorWallet,
                   'userB',
                   addVerkey=False)
コード例 #6
0
ファイル: test_suspension.py プロジェクト: snowy13/indy-node
def testTrusteeAddingTrustAnchor(looper, anotherTrustAnchor):
    # The new TTrustAnchor adds a NYM
    addRole(looper, *anotherTrustAnchor, name=randomString())
コード例 #7
0
ファイル: test_suspension.py プロジェクト: snowy13/indy-node
def testTrusteeAddingSteward(looper, anotherSteward):
    # The new Steward adds a TRUST_ANCHOR
    addRole(looper, *anotherSteward, name=randomString(), role=TRUST_ANCHOR)
コード例 #8
0
ファイル: test_suspension.py プロジェクト: snowy13/indy-node
def testTrusteeAddingTGB(looper, anotherTGB):
    # The new TGB adds a NYM
    addRole(looper, *anotherTGB, name=randomString())
コード例 #9
0
def testTrusteeAddingTrustAnchor(looper, anotherTrustAnchor):
    # The new TTrustAnchor adds a NYM
    addRole(looper, *anotherTrustAnchor, name=randomString())
コード例 #10
0
def testTrusteeAddingSteward(looper, anotherSteward):
    # The new Steward adds a TRUST_ANCHOR
    addRole(looper, *anotherSteward, name=randomString(), role=TRUST_ANCHOR)
コード例 #11
0
def testTrusteeAddingTGB(looper, anotherTGB):
    # The new TGB adds a NYM
    addRole(looper, *anotherTGB, name=randomString())
コード例 #12
0
ファイル: conftest.py プロジェクト: chriswinc/indy-node
def userWalletB(nodeSet, addedTrustAnchor,
                trustAnchorWallet, looper, trustAnchor):
    return addRole(looper, trustAnchor, trustAnchorWallet, 'userB',
                   addVerkey=False)