summaryrefslogtreecommitdiff
path: root/test/git/test_config.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-12-08 20:01:17 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-12-08 20:01:17 +0100
commit6a417f4cf2df39704aa4c869e88d14e9806894a7 (patch)
treed11d42889010b43e980f26b939a8368fb861f07f /test/git/test_config.py
parentc76a8c5499d22b9c0b4c56f03b671033eb9f9bdd (diff)
downloadgitpython-6a417f4cf2df39704aa4c869e88d14e9806894a7.tar.gz
config.set_value: added more convenient set_value method to ConfigReader
Diffstat (limited to 'test/git/test_config.py')
-rw-r--r--test/git/test_config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/git/test_config.py b/test/git/test_config.py
index e3d723a0..6103ab8d 100644
--- a/test/git/test_config.py
+++ b/test/git/test_config.py
@@ -49,6 +49,12 @@ class TestBase(TestCase):
assert w_config.has_option(sname,oname)
assert w_config.get(sname, oname) == val
+ sname_new = "new_section"
+ oname_new = "new_key"
+ ival = 10
+ w_config.set_value(sname_new, oname_new, ival)
+ assert w_config.get_value(sname_new, oname_new) == ival
+
file_obj.seek(0)
r_config = GitConfigParser(file_obj, read_only=True)
assert r_config.has_section(sname)