~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_add.py

  • Committer: Martin Pool
  • Date: 2011-06-14 01:26:41 UTC
  • mto: (6034.2.1 integration)
  • mto: This revision was merged to the branch mainline in revision 6043.
  • Revision ID: mbp@canonical.com-20110614012641-dnb69zb57ae5je4w
Move all test features into bzrlib.tests.features

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    tests,
25
25
    )
26
26
from bzrlib.tests import (
 
27
    features,
27
28
    script,
28
29
    )
29
30
from bzrlib.tests.scenarios import load_tests_apply_scenarios
205
206
        self.assertContainsRe(err, r'ERROR:.*\.bzr.*control file')
206
207
 
207
208
    def test_add_via_symlink(self):
208
 
        self.requireFeature(tests.SymlinkFeature)
 
209
        self.requireFeature(features.SymlinkFeature)
209
210
        self.make_branch_and_tree('source')
210
211
        self.build_tree(['source/top.txt'])
211
212
        os.symlink('source', 'link')
213
214
        self.assertEquals(out, 'adding top.txt\n')
214
215
 
215
216
    def test_add_symlink_to_abspath(self):
216
 
        self.requireFeature(tests.SymlinkFeature)
 
217
        self.requireFeature(features.SymlinkFeature)
217
218
        self.make_branch_and_tree('tree')
218
219
        os.symlink(osutils.abspath('target'), 'tree/link')
219
220
        out = self.run_bzr(['add', 'tree/link'])[0]
232
233
 
233
234
    def test_add_multiple_files_in_unicode_cwd(self):
234
235
        """Adding multiple files in a non-ascii cwd, see lp:686611"""
235
 
        self.requireFeature(tests.UnicodeFilename)
 
236
        self.requireFeature(features.UnicodeFilename)
236
237
        self.make_branch_and_tree(u"\xA7")
237
238
        self.build_tree([u"\xA7/a", u"\xA7/b"])
238
239
        out, err = self.run_bzr(["add", "a", "b"], working_dir=u"\xA7")