~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-07-01 11:45:59 UTC
  • mfrom: (5971.1.87 bzr-gpgme)
  • Revision ID: pqm@pqm.ubuntu.com-20110701114559-gshz8uv6hr0x0pax
(jr) Various small improvements to GPG support
 - improve LoopbackGPGStrategy doc string - use unicode strings for UI
 - add doc string to verify_signatures_available()
 - add process_events_callback argument to do_verifications() to keep GUIs
 responsive (Jonathan Riddell)

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