~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_branch.py

  • Committer: Aaron Bentley
  • Date: 2007-01-16 13:12:54 UTC
  • mto: (2230.3.47 branch6)
  • mto: This revision was merged to the branch mainline in revision 2290.
  • Revision ID: aaron.bentley@utoronto.ca-20070116131254-sjruli93timappd4
work in progress bind stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
635
635
        self.assertEqual(self.branch_format,
636
636
                         branch.BranchFormat.find_format(opened_control))
637
637
 
 
638
class TestBound(TestCaseWithBranch):
 
639
 
 
640
    def test_bind_unbind(self):
 
641
        branch = self.make_branch('1')
 
642
        branch2 = self.make_branch('2')
 
643
        try:
 
644
            branch.bind(branch2)
 
645
        except errors.UpgradeRequired:
 
646
            raise TestSkipped('Format does not support binding')
 
647
        branch.unbind()
 
648
        self.assertIs(None, branch.get_bound_location())
638
649