From 4111a16189e4ddc9b0a9085d4bda0d4a403cc960 Mon Sep 17 00:00:00 2001 From: John Dickinson Date: Fri, 8 Oct 2010 14:29:24 -0500 Subject: [PATCH] updated readconf test --- test/unit/common/test_utils.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/unit/common/test_utils.py b/test/unit/common/test_utils.py index b8d2523f04..e876690b1f 100644 --- a/test/unit/common/test_utils.py +++ b/test/unit/common/test_utils.py @@ -248,12 +248,11 @@ class TestUtils(unittest.TestCase): utils.load_libc_function('some_not_real_function'))) def test_readconf(self): - conf = ''' - [section1] - foo = bar - - [section2] - log_name = yarr + conf = '''[section1] +foo = bar + +[section2] +log_name = yarr ''' result = utils.readconf(StringIO(conf)) expected = {'section1': {'foo': 'bar'}, 'section2': {'log_name': 'yarr'}}