~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-09-22 05:29:23 UTC
  • mfrom: (4700.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090922052923-oj9unuqio1uf2f1b
(robertc) Cleanup end to end SSH connection test,
        hopefully fixing it on windows too. (Robert Collins,
        John Arbash Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4203
4203
HTTPSServerFeature = _HTTPSServerFeature()
4204
4204
 
4205
4205
 
 
4206
class _ParamikoFeature(Feature):
 
4207
    """Is paramiko available?"""
 
4208
 
 
4209
    def _probe(self):
 
4210
        try:
 
4211
            from bzrlib.transport.sftp import SFTPAbsoluteServer
 
4212
            return True
 
4213
        except errors.ParamikoNotPresent:
 
4214
            return False
 
4215
 
 
4216
    def feature_name(self):
 
4217
        return "Paramiko"
 
4218
 
 
4219
 
 
4220
ParamikoFeature = _ParamikoFeature()
 
4221
 
 
4222
 
4206
4223
class _UnicodeFilename(Feature):
4207
4224
    """Does the filesystem support Unicode filenames?"""
4208
4225