diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-06-07 19:58:06 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-06-07 19:58:06 +0200 |
commit | ba825ea244c70d342e0098b4ab4f62507be70f12 (patch) | |
tree | d5241ed1a0f05b04aece00a83c319890cf326570 /git/test/test_config.py | |
parent | ecd0fd499205cde2da1bfd11d6050d26ce71671d (diff) | |
download | gitpython-ba825ea244c70d342e0098b4ab4f62507be70f12.tar.gz |
Greatly improved robustness of config parser - it can now take pretty much everything. Includes an updated config file which includes all the new additions
Diffstat (limited to 'git/test/test_config.py')
-rw-r--r-- | git/test/test_config.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/git/test/test_config.py b/git/test/test_config.py index d07fe6fd..d2e199e3 100644 --- a/git/test/test_config.py +++ b/git/test/test_config.py @@ -30,7 +30,9 @@ class TestConfig(TestBase): w_config.read() # enforce reading assert w_config._sections w_config.write() # enforce writing - assert file_obj.getvalue() == file_obj_orig.getvalue() + + # we stripped lines when reading, so the results differ + assert file_obj.getvalue() != file_obj_orig.getvalue() # creating an additional config writer must fail due to exclusive access self.failUnlessRaises(IOError, GitConfigParser, file_obj, read_only = False) @@ -56,10 +58,10 @@ class TestConfig(TestBase): file_obj.seek(0) r_config = GitConfigParser(file_obj, read_only=True) + #print file_obj.getvalue() assert r_config.has_section(sname) assert r_config.has_option(sname, oname) assert r_config.get(sname, oname) == val - # END for each filename def test_base(self): |