From dcd0b8eff7fdcfb40a7d5b6d159f7edfc99b7271 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 17 Jul 2019 12:30:26 +0100 Subject: [PATCH] More checks --- tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests.py b/tests.py index 0999b84ff..6212567ee 100644 --- a/tests.py +++ b/tests.py @@ -1088,6 +1088,8 @@ def testClientToServer(): assert os.path.isfile(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt') assert os.path.isfile(aliceDir+'/accounts/alice@'+aliceDomain+'/following.txt') + assert 'alice@'+aliceDomain+':'+str(alicePort) in open(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt').read() + assert 'bob@'+bobDomain+':'+str(bobPort) in open(aliceDir+'/accounts/alice@'+aliceDomain+'/following.txt').read() print('\n\nBob repeats the post') sessionBob = createSession(bobDomain,bobPort,useTor)