~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

cleanedup test_outside_wt

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import bzrlib
24
24
from bzrlib.tests import (
25
25
                          _load_module_by_name,
 
26
                          ChrootedTestCase,
26
27
                          TestCase,
27
28
                          TestCaseInTempDir,
28
29
                          TestCaseWithTransport,
262
263
        self.failUnless(isinstance(t, HttpTransport))
263
264
        self.failUnless(isinstance(t2, HttpTransport))
264
265
        self.assertEqual(t2.base[:-1], t.abspath('foo/bar'))
 
266
 
 
267
 
 
268
class TestChrootedTest(ChrootedTestCase):
 
269
 
 
270
    def test_root_is_root(self):
 
271
        from bzrlib.transport import get_transport
 
272
        t = get_transport(self.get_readonly_url())
 
273
        url = t.base
 
274
        self.assertEqual(url, t.clone('..').base)