mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
White-space related lint fixes.
This commit is contained in:
parent
4a68e3b376
commit
0d1cf6edde
@ -4,7 +4,7 @@ Tests to try out stacking. Potentially ephemeral
|
||||
|
||||
'''
|
||||
from ioflo.base.odicting import odict
|
||||
from salt.transport.road.raet import raeting, packeting, stacking
|
||||
from salt.transport.road.raet import raeting, packeting, stacking
|
||||
|
||||
|
||||
def test():
|
||||
@ -12,7 +12,7 @@ def test():
|
||||
# master did of 1 on 7530
|
||||
# minion did of 2 on 7531
|
||||
|
||||
stack1 = stacking.Stack() #default did of 1
|
||||
stack1 = stacking.Stack() # default did of 1
|
||||
minion = stacking.Device(did=2, ha=('127.0.0.1', raeting.RAET_TEST_PORT))
|
||||
stack1.addRemoteDevice(minion)
|
||||
|
||||
@ -20,10 +20,9 @@ def test():
|
||||
master = stacking.Device(did=1, ha=('127.0.0.1', raeting.RAET_PORT))
|
||||
stack2.addRemoteDevice(master)
|
||||
|
||||
body=odict(msg='Hello Raet World', extra='what is this')
|
||||
body = odict(msg='Hello Raet World', extra='what is this')
|
||||
data = odict(hk=1, bk=1)
|
||||
|
||||
|
||||
joiner = stacking.Joiner(stack=stack2, rdid=master.did, sid=0, txData=data)
|
||||
joiner.start()
|
||||
|
||||
@ -33,7 +32,6 @@ def test():
|
||||
#packet.parseBack()
|
||||
#print packet.body.data
|
||||
|
||||
|
||||
stack2.serviceUdp()
|
||||
stack1.serviceUdp()
|
||||
|
||||
@ -48,6 +46,5 @@ def test():
|
||||
print "Packet dropped"
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
test()
|
||||
|
Loading…
Reference in New Issue
Block a user