A test for listening port 8444

This commit is contained in:
Dmitri Bogomolov 2020-11-05 17:45:26 +02:00 committed by Muzahid
parent f5fa7d47ad
commit b0cc81d643
Signed by untrusted user: cis-muzahid
GPG Key ID: 1DC85E7D3AB613EA

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: