def testStewardCannotAddMoreThanOneNode(looper, txnPoolNodeSet, steward1, stewardWallet, tdirWithPoolTxns, tconf, allPluginsPath): newNodeName = "Epsilon" with pytest.raises(AssertionError): addNewNode(looper, steward1, stewardWallet, newNodeName, tdirWithPoolTxns, tconf, allPluginsPath)
def testNonStewardCannotAddNode(looper, txnPoolNodeSet, client1, wallet1, client1Connected, tdirWithPoolTxns, tconf, allPluginsPath): newNodeName = "Epsilon" with pytest.raises(AssertionError): addNewNode(looper, client1, wallet1, newNodeName, tdirWithPoolTxns, tconf, allPluginsPath) for node in txnPoolNodeSet: checkReqNackWithReason(client1, 'is not a steward so cannot add a ' 'new node', node.clientstack.name)