/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/features.py

  • Committer: Jelmer Vernooij
  • Date: 2010-04-10 01:22:00 UTC
  • mto: This revision was merged to the branch mainline in revision 5143.
  • Revision ID: jelmer@samba.org-20100410012200-y089oi8jwvx9khyh
Add test for Repository.get_known_graph_ancestry().

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
apport = tests.ModuleAvailableFeature('apport')
25
25
paramiko = tests.ModuleAvailableFeature('paramiko')
26
26
pycurl = tests.ModuleAvailableFeature('pycurl')
27
 
pywintypes = tests.ModuleAvailableFeature('pywintypes')
28
27
subunit = tests.ModuleAvailableFeature('subunit')
29
28
 
30
 
 
31
29
class _PosixPermissionsFeature(tests.Feature):
32
30
 
33
31
    def _probe(self):
50
48
    def feature_name(self):
51
49
        return 'POSIX permissions support'
52
50
 
53
 
 
54
 
posix_permissions_feature = _PosixPermissionsFeature()
55
 
 
56
 
 
57
 
class _ChownFeature(tests.Feature):
58
 
    """os.chown is supported"""
59
 
 
60
 
    def _probe(self):
61
 
        return os.name == 'posix' and hasattr(os, 'chown')
62
 
 
63
 
chown_feature = _ChownFeature()
64
 
 
 
51
PosixPermissionsFeature = _PosixPermissionsFeature()