/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:
26
26
pycurl = tests.ModuleAvailableFeature('pycurl')
27
27
subunit = tests.ModuleAvailableFeature('subunit')
28
28
 
29
 
 
30
29
class _PosixPermissionsFeature(tests.Feature):
31
30
 
32
31
    def _probe(self):
49
48
    def feature_name(self):
50
49
        return 'POSIX permissions support'
51
50
 
52
 
 
53
 
posix_permissions_feature = _PosixPermissionsFeature()
54
 
 
55
 
 
56
 
class _ChownFeature(tests.Feature):
57
 
    """os.chown is supported"""
58
 
 
59
 
    def _probe(self):
60
 
        return os.name == 'posix' and hasattr(os, 'chown')
61
 
 
62
 
chown_feature = _ChownFeature()
63
 
 
 
51
PosixPermissionsFeature = _PosixPermissionsFeature()