diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-12-08 19:52:48 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-12-08 19:52:48 +0100 |
commit | c76a8c5499d22b9c0b4c56f03b671033eb9f9bdd (patch) | |
tree | 53a3647ee1d37866ba73b1df2e717f821aa52a3a /test/git/test_config.py | |
parent | 3326f34712f6a96c162033c7ccf370c8b7bc1ead (diff) | |
download | gitpython-c76a8c5499d22b9c0b4c56f03b671033eb9f9bdd.tar.gz |
config.get_value: Added default argument including test
Diffstat (limited to 'test/git/test_config.py')
-rw-r--r-- | test/git/test_config.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/git/test_config.py b/test/git/test_config.py index 4b6c4f11..e3d723a0 100644 --- a/test/git/test_config.py +++ b/test/git/test_config.py @@ -87,3 +87,8 @@ class TestBase(TestCase): assert num_sections and num_options assert r_config._is_initialized == True + # get value which doesnt exist, with default + default = "my default value" + assert r_config.get_value("doesnt", "exist", default) == default + + |