257
257
self.run_bzr_serve_then_func(
258
['--port', '0', '--directory', t.local_abspath('server-root'),
260
261
self.when_server_started)
261
262
# The when_server_started method issued a find_repositoryV3 that should
262
263
# fail with 'norepository' because there are no repositories inside the
264
265
self.assertEqual(('norepository',), self.client_resp)
266
267
def run_bzr_serve_then_func(self, serve_args, func, *func_args,
268
269
"""Run 'bzr serve', and run the given func in a thread once the server