update changes and rename file name

This commit is contained in:
Muzahid 2021-04-06 13:04:44 +05:30
parent f075d27fae
commit f5fba7d1a8
Signed by untrusted user: cis-muzahid
GPG Key ID: 1DC85E7D3AB613EA

View File

@ -4,18 +4,20 @@ Various tests for config
import os import os
import tempfile import tempfile
from .test_process import TestProcessProto
from pybitmessage.bmconfigparser import BMConfigParser from pybitmessage.bmconfigparser import BMConfigParser
from .test_process import TestProcessProto
class TestProcessConfig(TestProcessProto): class TestProcessConfig(TestProcessProto):
"""A test case for keys.dat""" """A test case for keys.dat"""
home = tempfile.mkdtemp() home = tempfile.mkdtemp()
def test_config_defaults(self): def test_config_defaults(self):
"""Test settings in the generated config""" """Test settings in the generated config"""
config = BMConfigParser() config = BMConfigParser()
self._stop_process()
self._kill_process()
config.read(os.path.join(self.home, 'keys.dat')) config.read(os.path.join(self.home, 'keys.dat'))
self.assertEqual(config.safeGetInt( self.assertEqual(config.safeGetInt(