def test_http_parameters(self): from breezy.tests.http_server import HttpServer # connect to '.' via http which is not listable server = HttpServer() self.start_server(server) t = transport.get_transport_from_url('readonly+' + server.get_url()) self.assertIsInstance(t, readonly.ReadonlyTransportDecorator) self.assertEqual(False, t.listable()) self.assertEqual(True, t.is_readonly())
def test_http_parameters(self): # the listable and is_readonly parameters # are not changed by the fakenfs decorator from breezy.tests.http_server import HttpServer # connect to '.' via http which is not listable server = HttpServer() self.start_server(server) t = self.get_nfs_transport(server.get_url()) self.assertIsInstance(t, fakenfs.FakeNFSTransportDecorator) self.assertEqual(False, t.listable()) self.assertEqual(True, t.is_readonly())