/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_bzrdir/test_bzrdir.py

  • Committer: Andrew Bennetts
  • Date: 2010-04-29 05:52:35 UTC
  • mfrom: (5192 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5193.
  • Revision ID: andrew.bennetts@canonical.com-20100429055235-24e81jfdse3h3ugt
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1971
1971
        self.assertRaises(errors.NoRepositoryPresent,
1972
1972
                          made_control.find_repository)
1973
1973
 
 
1974
 
 
1975
class TestBzrDirControlComponent(TestCaseWithBzrDir):
 
1976
    """BzrDir implementations adequately implement ControlComponent."""
 
1977
    
 
1978
    def test_urls(self):
 
1979
        bd = self.make_bzrdir('bd')
 
1980
        self.assertIsInstance(bd.user_url, str)
 
1981
        self.assertEqual(bd.user_url, bd.user_transport.base)
 
1982
        # for all current bzrdir implementations the user dir must be 
 
1983
        # above the control dir but we might need to relax that?
 
1984
        self.assertEqual(bd.control_url.find(bd.user_url), 0)
 
1985
        self.assertEqual(bd.control_url, bd.control_transport.base)