~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

(jelmer) Convert 'Branch.append_revisions_only' over to using config stacks.
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
    def test_remote_branch_set_append_revisions_only(self):
176
176
        # Make a format 1.9 branch, which supports append_revisions_only
177
177
        branch = self.make_branch('branch', format='1.9')
178
 
        config = branch.get_config()
179
178
        branch.set_append_revisions_only(True)
 
179
        config = branch.get_config_stack()
180
180
        self.assertEqual(
181
 
            'True', config.get_user_option('append_revisions_only'))
 
181
            True, config.get('append_revisions_only'))
182
182
        branch.set_append_revisions_only(False)
 
183
        config = branch.get_config_stack()
183
184
        self.assertEqual(
184
 
            'False', config.get_user_option('append_revisions_only'))
 
185
            False, config.get('append_revisions_only'))
185
186
 
186
187
    def test_remote_branch_set_append_revisions_only_upgrade_reqd(self):
187
188
        branch = self.make_branch('branch', format='knit')
188
 
        config = branch.get_config()
189
189
        self.assertRaises(
190
190
            errors.UpgradeRequired, branch.set_append_revisions_only, True)
191
191