From 5052602c21a06c5d9497dbe7196aa8a2d3a80ec9 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Mon, 26 Oct 2020 12:29:35 +0200 Subject: [PATCH] Add test for BITMESSAGE_HOME --- src/tests/test_process.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/test_process.py b/src/tests/test_process.py index 4d54e8d1..90691562 100644 --- a/src/tests/test_process.py +++ b/src/tests/test_process.py @@ -198,6 +198,11 @@ class TestProcess(TestProcessProto): """Check PyBitmessage process name""" self.assertEqual(self.process.name(), 'PyBitmessage') + def test_home(self): + """Ensure BITMESSAGE_HOME is used by process""" + self.assertEqual( + self.process.environ().get('BITMESSAGE_HOME'), self.home) + def test_files(self): """Check existence of PyBitmessage files""" for pfile in self._files: