forked from indymedia/epicyon
More inbox checks
parent
985e66f0df
commit
c70d37cdf2
|
@ -232,8 +232,8 @@ if args.tests:
|
||||||
|
|
||||||
if args.testsnetwork:
|
if args.testsnetwork:
|
||||||
print('Network Tests')
|
print('Network Tests')
|
||||||
#testPostMessageBetweenServers()
|
testPostMessageBetweenServers()
|
||||||
#testFollowBetweenServers()
|
testFollowBetweenServers()
|
||||||
testClientToServer()
|
testClientToServer()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
2
tests.py
2
tests.py
|
@ -365,6 +365,7 @@ def testPostMessageBetweenServers():
|
||||||
assert len([name for name in os.listdir(inboxPath) if os.path.isfile(os.path.join(inboxPath, name))])==1
|
assert len([name for name in os.listdir(inboxPath) if os.path.isfile(os.path.join(inboxPath, name))])==1
|
||||||
# queue item removed
|
# queue item removed
|
||||||
assert len([name for name in os.listdir(queuePath) if os.path.isfile(os.path.join(queuePath, name))])==0
|
assert len([name for name in os.listdir(queuePath) if os.path.isfile(os.path.join(queuePath, name))])==0
|
||||||
|
assert validInbox(bobDir,'bob',bobDomain)
|
||||||
|
|
||||||
print('\n\n*******************************************************')
|
print('\n\n*******************************************************')
|
||||||
print("Bob likes Alice's post")
|
print("Bob likes Alice's post")
|
||||||
|
@ -560,6 +561,7 @@ def testFollowBetweenServers():
|
||||||
print("Unexpected format for Bob's capabilities")
|
print("Unexpected format for Bob's capabilities")
|
||||||
pprint(bobCapsJson)
|
pprint(bobCapsJson)
|
||||||
assert False
|
assert False
|
||||||
|
assert validInbox(bobDir,'bob',bobDomain)
|
||||||
|
|
||||||
print('\n\n*********************************************************')
|
print('\n\n*********************************************************')
|
||||||
print('Eve tries to send to Bob')
|
print('Eve tries to send to Bob')
|
||||||
|
|
Loading…
Reference in New Issue