From 26057be6ff3bf23ec0ec23eafcf46428355a7407 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 5 Nov 2020 17:45:26 +0200 Subject: [PATCH] A test for listening port 8444 --- src/tests/test_process.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tests/test_process.py b/src/tests/test_process.py index 90691562..3355ceaf 100644 --- a/src/tests/test_process.py +++ b/src/tests/test_process.py @@ -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: