/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2010-04-30 11:35:43 UTC
  • mfrom: (5195 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5197.
  • Revision ID: jelmer@samba.org-20100430113543-tiqqhmqa3d8no4iu
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
988
988
        merger.do_merge()
989
989
        self.assertEqual('../branch/reference',
990
990
                         tree.branch.get_reference_info('file-id')[1])
 
991
 
 
992
 
 
993
class TestBranchControlComponent(per_branch.TestCaseWithBranch):
 
994
    """Branch implementations adequately implement ControlComponent."""
 
995
    
 
996
    def test_urls(self):
 
997
        br = self.make_branch('branch')
 
998
        self.assertIsInstance(br.user_url, str)
 
999
        self.assertEqual(br.user_url, br.user_transport.base)
 
1000
        # for all current bzrdir implementations the user dir must be 
 
1001
        # above the control dir but we might need to relax that?
 
1002
        self.assertEqual(br.control_url.find(br.user_url), 0)
 
1003
        self.assertEqual(br.control_url, br.control_transport.base)