/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Kuno Meyer
  • Date: 2007-07-24 19:40:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2655.
  • Revision ID: kuno.meyer@gmx.ch-20070724194040-ocyjulqhy31xe3j1
Extended tests for unicode chars outside of the iso-8859-* range
Two workarounds for incorrect glob.glob() implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import os
21
21
 
22
22
from bzrlib.tests.blackbox import ExternalBase
23
 
from bzrlib.tests.test_win32utils import Win32Feature
 
23
from bzrlib.tests.test_win32utils import NeedsGlobExpansionFeature
24
24
 
25
25
 
26
26
class TestAdd(ExternalBase):
195
195
        self.assertContainsRe(err, r'ERROR:.*\.bzr.*control file')
196
196
 
197
197
    def test_add_with_wildcards(self):
198
 
        self.requireFeature(Win32Feature)
 
198
        self.requireFeature(NeedsGlobExpansionFeature)
199
199
        self.make_branch_and_tree('.')
200
200
        self.build_tree(['a1', 'a2', 'b', 'c33'])
201
201
        self.run_bzr(['add', 'a?', 'c*'])
202
202
        self.assertEquals(self.run_bzr('unknowns')[0], 'b\n')
 
203
 
 
204
    def test_add_with_wildcards_unicode(self):
 
205
        self.requireFeature(NeedsGlobExpansionFeature)
 
206
        self.make_branch_and_tree('.')
 
207
        self.build_tree([u'\u1234A', u'\u1235A', u'\u1235AA', 'cc'])
 
208
        self.run_bzr(['add', u'\u1234?', u'\u1235*'])
 
209
        self.assertEquals(self.run_bzr('unknowns')[0], 'cc\n')