/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: Martin
  • Date: 2010-05-16 15:18:43 UTC
  • mfrom: (5235 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5239.
  • Revision ID: gzlist@googlemail.com-20100516151843-lu53u7caehm3ie3i
Merge bzr.dev to resolve conflicts in NEWS and _chk_map_pyx

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)