~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_serve.py

  • Committer: Martin Pool
  • Date: 2009-09-15 01:52:34 UTC
  • mfrom: (4685 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4689.
  • Revision ID: mbp@sourcefrog.net-20090915015234-lbvl4euj2z353zjl
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
255
255
        t = self.get_transport()
256
256
        t.mkdir('server-root')
257
257
        self.run_bzr_serve_then_func(
258
 
            ['--port', '0', '--directory', t.local_abspath('server-root'),
 
258
            ['--port', '127.0.0.1:0',
 
259
             '--directory', t.local_abspath('server-root'),
259
260
             '--allow-writes'],
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
263
264
        # --directory.
264
265
        self.assertEqual(('norepository',), self.client_resp)
265
 
        
 
266
 
266
267
    def run_bzr_serve_then_func(self, serve_args, func, *func_args,
267
268
            **func_kwargs):
268
269
        """Run 'bzr serve', and run the given func in a thread once the server