~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

Move all features to bzrlib.tests.features in 2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
357
357
not_running_as_root = _NotRunningAsRoot()
358
358
 
359
359
apport = ModuleAvailableFeature('apport')
 
360
gpgme = ModuleAvailableFeature('gpgme')
360
361
lzma = ModuleAvailableFeature('lzma')
361
362
meliae = ModuleAvailableFeature('meliae')
362
363
paramiko = ModuleAvailableFeature('paramiko')
364
365
pywintypes = ModuleAvailableFeature('pywintypes')
365
366
sphinx = ModuleAvailableFeature('sphinx')
366
367
subunit = ModuleAvailableFeature('subunit')
 
368
testtools = tests.ModuleAvailableFeature('testtools')
367
369
 
368
370
compiled_patiencediff_feature = ModuleAvailableFeature(
369
371
    'bzrlib._patiencediff_c')
512
514
 
513
515
 
514
516
AttribFeature = _AttribFeature()
 
517
 
 
518
 
 
519
class Win32Feature(tests.Feature):
 
520
    """Feature testing whether we're running selftest on Windows
 
521
    or Windows-like platform.
 
522
    """
 
523
 
 
524
    def _probe(self):
 
525
        return sys.platform == 'win32'
 
526
 
 
527
    def feature_name(self):
 
528
        return "win32 platform"
 
529
 
 
530
win32_feature = Win32Feature()