added test case for _reset()

This commit is contained in:
cis-kuldeep 2021-05-24 18:53:03 +05:30
parent 5cfdf9db68
commit 4239e34bf7

View File

@ -34,3 +34,8 @@ class TestConfig(unittest.TestCase):
BMConfigParser().safeGetInt('nonexistent', 'nonexistent'), 0) BMConfigParser().safeGetInt('nonexistent', 'nonexistent'), 0)
self.assertEqual( self.assertEqual(
BMConfigParser().safeGetInt('nonexistent', 'nonexistent', 42), 42) BMConfigParser().safeGetInt('nonexistent', 'nonexistent', 42), 42)
def test_reset(self):
"""Reset current config"""
bm = BMConfigParser()
self.assertEqual(bm._reset(), None)