~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_testament.py

  • Committer: Andrew Bennetts
  • Date: 2007-11-10 15:09:09 UTC
  • mfrom: (2916.2.17 streamable-containers)
  • mto: This revision was merged to the branch mainline in revision 3174.
  • Revision ID: andrew.bennetts@canonical.com-20071110150909-ik5254kgn930th10
Merge streamable-containers.

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