/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Vincent Ladeuil
  • Date: 2009-03-19 14:57:51 UTC
  • mfrom: (3508.1.24 pyftpdlib)
  • mto: This revision was merged to the branch mainline in revision 4168.
  • Revision ID: v.ladeuil+lp@free.fr-20090319145751-6vg1h5oo1jox3wsw
FTP test server: disable medusa for python2.6, add pyftpdlib

Show diffs side-by-side

added added

removed removed

Lines of Context:
1017
1017
        path_stat = transport.stat(path)
1018
1018
        actual_mode = stat.S_IMODE(path_stat.st_mode)
1019
1019
        self.assertEqual(mode, actual_mode,
1020
 
            'mode of %r incorrect (%o != %o)' % (path, mode, actual_mode))
 
1020
                         'mode of %r incorrect (%s != %s)'
 
1021
                         % (path, oct(mode), oct(actual_mode)))
1021
1022
 
1022
1023
    def assertIsSameRealPath(self, path1, path2):
1023
1024
        """Fail if path1 and path2 points to different files"""
3420
3421
    return None
3421
3422
 
3422
3423
 
3423
 
class _FTPServerFeature(Feature):
3424
 
    """Some tests want an FTP Server, check if one is available.
3425
 
 
3426
 
    Right now, the only way this is available is if 'medusa' is installed.
3427
 
    http://www.amk.ca/python/code/medusa.html
3428
 
    """
3429
 
 
3430
 
    def _probe(self):
3431
 
        try:
3432
 
            import bzrlib.tests.ftp_server
3433
 
            return True
3434
 
        except ImportError:
3435
 
            return False
3436
 
 
3437
 
    def feature_name(self):
3438
 
        return 'FTPServer'
3439
 
 
3440
 
 
3441
 
FTPServerFeature = _FTPServerFeature()
3442
 
 
3443
 
 
3444
3424
class _HTTPSServerFeature(Feature):
3445
3425
    """Some tests want an https Server, check if one is available.
3446
3426