diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-04-01 20:29:22 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-04-01 22:42:13 +0200 |
commit | 4c6b06773876a35f55f8f5667af65a917f823757 (patch) | |
tree | 8623bdccf7d7d1a0d559bdb8f38dae4af0e652f0 /tests/18_test_Config.py | |
parent | 03ada72d54480917c75e05568844e3f596e2cb64 (diff) |
Add minimal 'config' command
This only allows to print single config values so far.
Closes: #733470
Diffstat (limited to 'tests/18_test_Config.py')
-rw-r--r-- | tests/18_test_Config.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/18_test_Config.py b/tests/18_test_Config.py index 701288b4..ae39b5a2 100644 --- a/tests/18_test_Config.py +++ b/tests/18_test_Config.py @@ -62,3 +62,12 @@ class TestConfigParser(unittest.TestCase): actual = parser.config['new_overrides_git_option1'] expected = 'new_overrides_git_value1' self.assertEqual(actual, expected, "%s != %s for %s" % (actual, expected, cmd)) + + def test_get_config_file_value(self): + """ + Read a single value from the parse config + """ + parser = GbpOptionParser('cmd4') + self.assertEqual(parser.get_config_file_value('new_overrides_git_option1'), + 'new_overrides_git_value1') + self.assertEqual(parser.get_config_file_value('doesnotexist'), None) |