Mercurial > public > mercurial-scm > python-hglib
comparison tests/test-config.py @ 132:9ecb271600fc
client: fix passing multiple config settings
author | Julien Cristau <julien.cristau@logilab.fr> |
---|---|
date | Tue, 30 Sep 2014 12:00:34 +0200 |
parents | e738d6fe5f3f |
children | 4359cabcb0cc |
comparison
equal
deleted
inserted
replaced
131:a3373bf28ccb | 132:9ecb271600fc |
---|---|
23 def test_show_source(self): | 23 def test_show_source(self): |
24 config = self.client.config(showsource=True) | 24 config = self.client.config(showsource=True) |
25 | 25 |
26 self.assertTrue((os.path.abspath('.hg/hgrc') + ':2', | 26 self.assertTrue((os.path.abspath('.hg/hgrc') + ':2', |
27 'section', 'key', 'value') in config) | 27 'section', 'key', 'value') in config) |
28 | |
29 class test_config_arguments(common.basetest): | |
30 def test_basic(self): | |
31 client = hglib.open(configs=['diff.unified=5', 'a.b=foo']) | |
32 self.assertEqual(client.config('a'), [('a', 'b', 'foo')]) | |
33 self.assertEqual(client.config('diff'), [('diff', 'unified', '5')]) |