~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Martin von Gagern
  • Date: 2011-06-01 12:53:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6009.
  • Revision ID: martin.vgagern@gmx.net-20110601125356-lwozv2vecea6hxfz
Change from no_decorate to classify as name for the argument.

The command line switch remains as --no-classify, to keep backwards
compatibility.  Users are free to include --no-classify in an alias, and
still use --classify to change back.

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