forked from indymedia/epicyon
More inbox checks
parent
985e66f0df
commit
c70d37cdf2
|
@ -232,8 +232,8 @@ if args.tests:
|
|||
|
||||
if args.testsnetwork:
|
||||
print('Network Tests')
|
||||
#testPostMessageBetweenServers()
|
||||
#testFollowBetweenServers()
|
||||
testPostMessageBetweenServers()
|
||||
testFollowBetweenServers()
|
||||
testClientToServer()
|
||||
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
|
||||
# queue item removed
|
||||
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("Bob likes Alice's post")
|
||||
|
@ -560,6 +561,7 @@ def testFollowBetweenServers():
|
|||
print("Unexpected format for Bob's capabilities")
|
||||
pprint(bobCapsJson)
|
||||
assert False
|
||||
assert validInbox(bobDir,'bob',bobDomain)
|
||||
|
||||
print('\n\n*********************************************************')
|
||||
print('Eve tries to send to Bob')
|
||||
|
|
Loading…
Reference in New Issue