~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_testament.py

  • Committer: Martin Pool
  • Date: 2007-10-12 08:00:07 UTC
  • mto: This revision was merged to the branch mainline in revision 2913.
  • Revision ID: mbp@sourcefrog.net-20071012080007-vf80woayyom8s8e1
Rename update_to_one_parent_via_delta to more wieldy update_basis_by_delta

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import os
22
22
from sha import sha
23
23
 
24
 
from bzrlib.tests import SymlinkFeature, TestCaseWithTransport
 
24
from bzrlib.tests import TestCaseWithTransport
25
25
from bzrlib.testament import Testament, StrictTestament, StrictTestament3
26
26
from bzrlib.transform import TreeTransform
 
27
from bzrlib.osutils import has_symlinks
27
28
 
28
29
 
29
30
class TestamentSetup(TestCaseWithTransport):
97
98
 
98
99
    def test_testament_symlinks(self):
99
100
        """Testament containing symlink (where possible)"""
100
 
        self.requireFeature(SymlinkFeature)
 
101
        if not has_symlinks():
 
102
            return
101
103
        os.symlink('wibble/linktarget', 'link')
102
104
        self.wt.add(['link'], ['link-id'])
103
105
        self.wt.commit(message='add symlink',