~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2010-02-17 17:11:16 UTC
  • mfrom: (4797.2.17 2.1)
  • mto: (4797.2.18 2.1)
  • mto: This revision was merged to the branch mainline in revision 5055.
  • Revision ID: john@arbash-meinel.com-20100217171116-h7t9223ystbnx5h8
merge bzr.2.1 in preparation for NEWS entry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007, 2009 Canonical Ltd
 
1
# Copyright (C) 2006, 2007, 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
27
27
    SymlinkFeature
28
28
    )
29
29
from bzrlib.tests.blackbox import ExternalBase
30
 
from bzrlib.tests.test_win32utils import NeedsGlobExpansionFeature
31
30
 
32
31
 
33
32
def load_tests(standard_tests, module, loader):
211
210
        err = self.run_bzr('add .bzr/crescent', retcode=3)[1]
212
211
        self.assertContainsRe(err, r'ERROR:.*\.bzr.*control file')
213
212
 
214
 
    def test_add_with_wildcards(self):
215
 
        self.requireFeature(NeedsGlobExpansionFeature)
216
 
        self.make_branch_and_tree('.')
217
 
        self.build_tree(['a1', 'a2', 'b', 'c33'])
218
 
        self.run_bzr(['add', 'a?', 'c*'])
219
 
        self.assertEquals(self.run_bzr('unknowns')[0], 'b\n')
220
 
 
221
 
    def test_add_with_wildcards_unicode(self):
222
 
        self.requireFeature(NeedsGlobExpansionFeature)
223
 
        self.make_branch_and_tree('.')
224
 
        self.build_tree([u'\u1234A', u'\u1235A', u'\u1235AA', 'cc'])
225
 
        self.run_bzr(['add', u'\u1234?', u'\u1235*'])
226
 
        self.assertEquals(self.run_bzr('unknowns')[0], 'cc\n')
227
 
 
228
213
    def test_add_via_symlink(self):
229
214
        self.requireFeature(SymlinkFeature)
230
215
        self.make_branch_and_tree('source')