Add test for BITMESSAGE_HOME

This commit is contained in:
Dmitri Bogomolov 2020-10-26 12:29:35 +02:00 committed by Muzahid
parent 30a78901f9
commit f5fa7d47ad
Signed by untrusted user: cis-muzahid
GPG Key ID: 1DC85E7D3AB613EA

View File

@ -198,6 +198,11 @@ class TestProcess(TestProcessProto):
"""Check PyBitmessage process name""" """Check PyBitmessage process name"""
self.assertEqual(self.process.name(), 'PyBitmessage') 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): def test_files(self):
"""Check existence of PyBitmessage files""" """Check existence of PyBitmessage files"""
for pfile in self._files: for pfile in self._files: