~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Martin Pool
  • Date: 2011-07-04 21:10:37 UTC
  • mto: (6034.1.1 filter-tree)
  • mto: This revision was merged to the branch mainline in revision 6035.
  • Revision ID: mbp@canonical.com-20110704211037-ro3417imj3oqnqxp
Support exporting tarballs from ContentFilterTree

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    test_commit,
47
47
    )
48
48
from bzrlib.transform import TreeTransform
49
 
from bzrlib.tests import (
50
 
    features,
51
 
    )
52
49
 
53
50
 
54
51
def get_text(vf, key):
685
682
    def _test_symlink_bundle(self, link_name, link_target, new_link_target):
686
683
        link_id = 'link-1'
687
684
 
688
 
        self.requireFeature(features.SymlinkFeature)
 
685
        self.requireFeature(tests.SymlinkFeature)
689
686
        self.tree1 = self.make_branch_and_tree('b1')
690
687
        self.b1 = self.tree1.branch
691
688
 
732
729
        self._test_symlink_bundle('link', 'bar/foo', 'mars')
733
730
 
734
731
    def test_unicode_symlink_bundle(self):
735
 
        self.requireFeature(features.UnicodeFilenameFeature)
 
732
        self.requireFeature(tests.UnicodeFilenameFeature)
736
733
        self._test_symlink_bundle(u'\N{Euro Sign}link',
737
734
                                  u'bar/\N{Euro Sign}foo',
738
735
                                  u'mars\N{Euro Sign}')
839
836
        return bundle_file.getvalue()
840
837
 
841
838
    def test_unicode_bundle(self):
842
 
        self.requireFeature(features.UnicodeFilenameFeature)
 
839
        self.requireFeature(tests.UnicodeFilenameFeature)
843
840
        # Handle international characters
844
841
        os.mkdir('b1')
845
842
        f = open(u'b1/with Dod\N{Euro Sign}', 'wb')