~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_testament.py

  • Committer: John Arbash Meinel
  • Date: 2008-09-26 22:14:42 UTC
  • mto: This revision was merged to the branch mainline in revision 3747.
  • Revision ID: john@arbash-meinel.com-20080926221442-3r67j99sr9rwe9w0
Make message optional, don't check the memory flag directly.

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',