~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-01-08 03:35:09 UTC
  • mfrom: (4934.3.4 cleanup)
  • Revision ID: pqm@pqm.ubuntu.com-20100108033509-5dp440ermqsavlhr
(mbp) rename Server.setUp and tearDown to start_server and stop_server

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
class MemoryServer(Server):
304
304
    """Server for the MemoryTransport for testing with."""
305
305
 
306
 
    def setUp(self):
307
 
        """See bzrlib.transport.Server.setUp."""
 
306
    def start_server(self):
308
307
        self._dirs = {'/':None}
309
308
        self._files = {}
310
309
        self._locks = {}
317
316
            return result
318
317
        register_transport(self._scheme, memory_factory)
319
318
 
320
 
    def tearDown(self):
321
 
        """See bzrlib.transport.Server.tearDown."""
 
319
    def stop_server(self):
322
320
        # unregister this server
 
321
        # XXX: why isn't this done? -- mbp 20100106
 
322
        pass
323
323
 
324
324
    def get_url(self):
325
325
        """See bzrlib.transport.Server.get_url."""