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
1 changed files with 5 additions and 0 deletions

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: