update changes and rename file name
This commit is contained in:
parent
f075d27fae
commit
f5fba7d1a8
|
@ -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(
|
Loading…
Reference in New Issue
Block a user