~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/ftp.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-13 14:34:26 UTC
  • mfrom: (2413.1.2 test_case_with_ftp_server)
  • Revision ID: pqm@pqm.ubuntu.com-20070413143426-6aj60em3rta94aw0
(John Arbash Meinel) Update FtpServer for setUp(vfs_server), and MedusaFeature

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    split_url,
48
48
    Transport,
49
49
    )
 
50
from bzrlib.transport.local import LocalURLServer
50
51
import bzrlib.ui
51
52
 
52
53
_have_medusa = False
550
551
        """This is used by medusa.ftp_server to log connections, etc."""
551
552
        self.logs.append(message)
552
553
 
553
 
    def setUp(self):
554
 
 
 
554
    def setUp(self, vfs_server=None):
555
555
        if not _have_medusa:
556
556
            raise RuntimeError('Must have medusa to run the FtpServer')
557
557
 
 
558
        assert vfs_server is None or isinstance(vfs_server, LocalURLServer), \
 
559
            "FtpServer currently assumes local transport, got %s" % vfs_server
 
560
 
558
561
        self._root = os.getcwdu()
559
562
        self._ftp_server = _ftp_server(
560
563
            authorizer=_test_authorizer(root=self._root),