From ccf75aac8977cdee381bfebd7e55d88e24a1b52b Mon Sep 17 00:00:00 2001 From: gwen Date: Fri, 15 Mar 2013 09:24:43 +0100 Subject: [PATCH] tests for get_home_by_paths --- test/test_config.py | 4 ++-- test/test_option_type.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_config.py b/test/test_config.py index 35c0c5b..beb75ad 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -101,7 +101,7 @@ def test_cfgimpl_get_home_by_path(): descr = make_description() config = Config(descr) config.bool = False - assert config._cfgimpl_get_home_by_path('gc.dummy')[1] == 'dummy' - assert config._cfgimpl_get_home_by_path('dummy')[1] == 'dummy' + assert config.cfgimpl_get_home_by_path('gc.dummy')[1] == 'dummy' + assert config.cfgimpl_get_home_by_path('dummy')[1] == 'dummy' assert config.getpaths(include_groups=False) == ['gc.name', 'gc.dummy', 'gc.float', 'bool', 'objspace', 'wantref', 'str', 'wantframework', 'int', 'boolop'] assert config.getpaths(include_groups=True) == ['gc', 'gc.name', 'gc.dummy', 'gc.float', 'bool', 'objspace', 'wantref', 'str', 'wantframework', 'int', 'boolop'] diff --git a/test/test_option_type.py b/test/test_option_type.py index 05a16c2..aab0ac7 100644 --- a/test/test_option_type.py +++ b/test/test_option_type.py @@ -141,7 +141,7 @@ def test_with_many_subgroups(): assert config.gc.subgroup.booltwo == False config.gc.subgroup._cfgimpl_descr.booltwo.hide() path = 'gc.subgroup.booltwo' - homeconfig, name = config._cfgimpl_get_home_by_path(path) + homeconfig, name = config.cfgimpl_get_home_by_path(path) assert name == "booltwo" option = getattr(homeconfig._cfgimpl_descr, name) assert option._is_hidden()