~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

Merge config-abstract-store into config-concrete-stores resolving conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1838
1838
 
1839
1839
class TestConfigMutableSection(tests.TestCase):
1840
1840
 
1841
 
    # FIXME: Parametrize so that all sections (includind os.environ and the
 
1841
    # FIXME: Parametrize so that all sections (including os.environ and the
1842
1842
    # ones produced by Stores) run these tests -- vila 2011-04-01
1843
1843
 
1844
1844
    def test_set(self):
1951
1951
        self.assertLength(1, sections)
1952
1952
        self.assertSectionContent(('baz', {'foo': 'bar'}), sections[0])
1953
1953
 
 
1954
    def test_load_from_string_fails_for_non_empty_store(self):
 
1955
        store = self.get_store('foo.conf', 'foo=bar')
 
1956
        self.assertRaises(AssertionError, store._load_from_string, 'bar=baz')
 
1957
 
1954
1958
 
1955
1959
class TestMutableStore(TestStore):
1956
1960