def setup(tdir, looper, tconf): names = ['Alpha', 'Beta', 'Gamma'] (alpha, beta, gamma), (alphaP, betaP, gammaP) = \ create_and_prep_stacks(names, tdir, looper, tconf) check_stacks_communicating(looper, (alpha, beta, gamma), (alphaP, betaP, gammaP)) return (alpha, beta, gamma)
def testRestricted2ZStackCommunication(tdir, looper, tconf): """ Create 2 ZStack and make them send and receive messages. Both stacks allow communication only when keys are shared :return: """ names = ['Alpha', 'Beta'] (alpha, beta), (alphaP, betaP) = create_and_prep_stacks(names, tdir, looper, tconf) check_stacks_communicating(looper, (alpha, beta), (alphaP, betaP))