Rev 5771: Fix fallouts. in file:///home/vila/src/bzr/experimental/config/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Tue Apr 12 11:39:12 UTC 2011
At file:///home/vila/src/bzr/experimental/config/
------------------------------------------------------------
revno: 5771
revision-id: v.ladeuil+lp at free.fr-20110412113912-qovu9e021cye6eh6
parent: v.ladeuil+lp at free.fr-20110412113717-ow1u73dbtwfui1ks
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: config-stack
timestamp: Tue 2011-04-12 13:39:12 +0200
message:
Fix fallouts.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py 2011-04-12 11:37:17 +0000
+++ b/bzrlib/tests/test_config.py 2011-04-12 11:39:12 +0000
@@ -2210,8 +2210,8 @@
# paramerized tests created to avoid bloating -- vila 2011-04-05
def test_simple_set(self):
- store = config.ConfigObjStore.from_string(
- 'foo=bar', self.get_transport(), 'test.conf')
+ store = config.ConfigObjStore(self.get_transport(), 'test.conf')
+ store._load_from_string('foo=bar')
conf = config.ConfigStack(
[store.get_sections], store.get_mutable_section)
self.assertEquals('bar', conf.get('foo'))
@@ -2220,8 +2220,7 @@
self.assertEquals('baz', conf.get('foo'))
def test_set_creates_a_new_section(self):
- store = config.ConfigObjStore.from_string(
- '', self.get_transport(), 'test.conf')
+ store = config.ConfigObjStore(self.get_transport(), 'test.conf')
conf = config.ConfigStack(
[store.get_sections], store.get_mutable_section)
conf.set('foo', 'baz')
@@ -2234,8 +2233,8 @@
# paramerized tests created to avoid bloating -- vila 2011-04-06
def test_remove_existing(self):
- store = config.ConfigObjStore.from_string(
- 'foo=bar', self.get_transport(), 'test.conf')
+ store = config.ConfigObjStore(self.get_transport(), 'test.conf')
+ store._load_from_string('foo=bar')
conf = config.ConfigStack(
[store.get_sections], store.get_mutable_section)
self.assertEquals('bar', conf.get('foo'))
More information about the bazaar-commits
mailing list