summaryrefslogtreecommitdiff
path: root/test/git/test_config.py
diff options
context:
space:
mode:
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)