317
317
working_dir='tree_1')
318
318
self.assertIs(None, tree.branch.get_bound_location())
320
def test_bind_nick(self):
321
"""Bind should not update implicit nick."""
322
base = self.make_branch_and_tree('base')
323
child = self.make_branch_and_tree('child')
325
self.assertEqual(child.branch.nick, 'child')
326
self.assertEqual(child.branch.get_config().has_explicit_nickname(),
328
self.run_bzr('bind ../base')
329
self.assertEqual(child.branch.nick, base.branch.nick)
330
self.assertEqual(child.branch.get_config().has_explicit_nickname(),
333
def test_bind_explicit_nick(self):
334
"""Bind should update explicit nick."""
335
base = self.make_branch_and_tree('base')
336
child = self.make_branch_and_tree('child')
338
child.branch.nick = "explicit_nick"
339
self.assertEqual(child.branch.nick, "explicit_nick")
340
self.assertEqual(child.branch.get_config()._get_explicit_nickname(),
342
self.run_bzr('bind ../base')
343
self.assertEqual(child.branch.nick, base.branch.nick)
344
self.assertEqual(child.branch.get_config()._get_explicit_nickname(),
320
347
def test_commit_after_merge(self):
321
348
base_tree, child_tree = self.create_branches()