~jelmer/dulwich/lp-pqm

« back to all changes in this revision

Viewing changes to dulwich/tests/test_config.py

  • Committer: Jelmer Vernooij
  • Date: 2012-01-23 17:12:27 UTC
  • mto: (413.62.2)
  • mto: This revision was merged to the branch mainline in revision 436.
  • Revision ID: git-v1:5f109a429da29c809498cf738e03c87ab28fddb9
Options on the same line as sections in config files are now supported. #920553

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
        c.write_to_file(f)
148
148
        self.assertEquals("[branch \"blie\"]\nfoo = bar\n", f.getvalue())
149
149
 
 
150
    def test_same_line(self):
 
151
        cf = self.from_file("[branch.foo] foo = bar\n")
 
152
        self.assertEquals("bar", cf.get(("branch", "foo"), "foo"))
 
153
 
150
154
 
151
155
class ConfigDictTests(TestCase):
152
156