267
267
def test_config(self):
268
268
"""Ensure that all configuration data is stored in the branch"""
269
269
branch = self.make_branch('a', format=self.get_format_name())
270
branch.set_parent('http://bazaar-vcs.org')
270
branch.set_parent('http://example.com')
271
271
self.failIfExists('a/.bzr/branch/parent')
272
self.assertEqual('http://bazaar-vcs.org', branch.get_parent())
273
branch.set_push_location('sftp://bazaar-vcs.org')
272
self.assertEqual('http://example.com', branch.get_parent())
273
branch.set_push_location('sftp://example.com')
274
274
config = branch.get_config()._get_branch_data_config()
275
self.assertEqual('sftp://bazaar-vcs.org',
275
self.assertEqual('sftp://example.com',
276
276
config.get_user_option('push_location'))
277
branch.set_bound_location('ftp://bazaar-vcs.org')
277
branch.set_bound_location('ftp://example.com')
278
278
self.failIfExists('a/.bzr/branch/bound')
279
self.assertEqual('ftp://bazaar-vcs.org', branch.get_bound_location())
279
self.assertEqual('ftp://example.com', branch.get_bound_location())
281
281
def test_set_revision_history(self):
282
282
builder = self.make_branch_builder('.', format=self.get_format_name())