A test for listening port 8444

This commit is contained in:
Dmitri Bogomolov 2020-11-05 17:45:26 +02:00
parent 5052602c21
commit 26057be6ff
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
1 changed files with 7 additions and 0 deletions

View File

@ -203,6 +203,13 @@ class TestProcess(TestProcessProto):
self.assertEqual(
self.process.environ().get('BITMESSAGE_HOME'), self.home)
def test_listening(self):
"""Check that pybitmessage listens on port 8444"""
for c in self.process.connections():
if c.status == 'LISTEN':
self.assertEqual(c.laddr.port, 8444)
break
def test_files(self):
"""Check existence of PyBitmessage files"""
for pfile in self._files: