~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

(vila) Migrate more branch config options to config stacks. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
356
356
        self.assertPathDoesNotExist('a/.bzr/branch/parent')
357
357
        self.assertEqual('http://example.com', branch.get_parent())
358
358
        branch.set_push_location('sftp://example.com')
359
 
        config = branch.get_config()._get_branch_data_config()
360
 
        self.assertEqual('sftp://example.com',
361
 
                         config.get_user_option('push_location'))
 
359
        config = branch.get_config_stack()
 
360
        self.assertEqual('sftp://example.com', config.get('push_location'))
362
361
        branch.set_bound_location('ftp://example.com')
363
362
        self.assertPathDoesNotExist('a/.bzr/branch/bound')
364
363
        self.assertEqual('ftp://example.com', branch.get_bound_location())