Add test for BITMESSAGE_HOME

This commit is contained in:
Dmitri Bogomolov 2020-10-26 12:29:35 +02:00
parent 265fb932a8
commit 5052602c21
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -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: