~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_win32utils.py

  • Committer: Martin Pool
  • Date: 2010-01-12 06:30:41 UTC
  • mfrom: (4634.119.3 2.0)
  • mto: This revision was merged to the branch mainline in revision 4951.
  • Revision ID: mbp@sourcefrog.net-20100112063041-qp2ei0clx5gh0e9e
merge 2.0 back to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
373
373
        self.assertCommandLine([u"'a/*.c'"], "'a/*.c'")
374
374
 
375
375
    def test_slashes_changed(self):
376
 
        self.assertCommandLine([u'a/*.c'], '"a\\*.c"')
377
 
        # Expands the glob, but nothing matches
 
376
        # Quoting doesn't change the supplied args
 
377
        self.assertCommandLine([u'a\\*.c'], '"a\\*.c"')
 
378
        # Expands the glob, but nothing matches, swaps slashes
378
379
        self.assertCommandLine([u'a/*.c'], 'a\\*.c')
379
 
        self.assertCommandLine([u'a/foo.c'], 'a\\foo.c')
 
380
        self.assertCommandLine([u'a/?.c'], 'a\\?.c')
 
381
        # No glob, doesn't touch slashes
 
382
        self.assertCommandLine([u'a\\foo.c'], 'a\\foo.c')
380
383
 
381
384
    def test_no_single_quote_supported(self):
382
385
        self.assertCommandLine(["add", "let's-do-it.txt"],