Rev 5745: Stacks can be used as read-only sections. in file:///home/vila/src/bzr/experimental/config/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Thu Mar 31 15:42:27 UTC 2011
At file:///home/vila/src/bzr/experimental/config/
------------------------------------------------------------
revno: 5745
revision-id: v.ladeuil+lp at free.fr-20110331154227-spmv815449huypn4
parent: v.ladeuil+lp at free.fr-20110331150649-dbcpw9y46fvgn1tb
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: config-stack
timestamp: Thu 2011-03-31 17:42:27 +0200
message:
Stacks can be used as read-only sections.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py 2011-03-31 15:06:49 +0000
+++ b/bzrlib/tests/test_config.py 2011-03-31 15:42:27 +0000
@@ -1833,6 +1833,12 @@
conf_stack = config.ConfigStack([conf1, conf2])
self.assertEquals('bar', conf_stack.get('foo'))
+ def test_get_embedded_definition(self):
+ conf1 = dict(yy='12')
+ conf2 = config.ConfigStack([dict(xx='42'), dict(foo='baz')])
+ conf_stack = config.ConfigStack([conf1, conf2])
+ self.assertEquals('baz', conf_stack.get('foo'))
+
class TestConfigGetOptions(tests.TestCaseWithTransport, TestOptionsMixin):
More information about the bazaar-commits
mailing list