631
630
url = self.get_readonly_url()
632
631
url2 = self.get_readonly_url('foo/bar')
635
634
self.failUnless(isinstance(t, ReadonlyTransportDecorator))
636
635
self.failUnless(isinstance(t2, ReadonlyTransportDecorator))
637
636
self.assertEqual(t2.base[:-1], t.abspath('foo/bar'))
639
638
def test_get_readonly_url_http(self):
640
639
from bzrlib.tests.http_server import HttpServer
642
640
from bzrlib.transport.http import HttpTransportBase
643
641
self.transport_server = test_server.LocalURLServer
644
642
self.transport_readonly_server = HttpServer