~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_win32utils.py

  • Committer: John Arbash Meinel
  • Date: 2009-11-04 22:12:46 UTC
  • mto: This revision was merged to the branch mainline in revision 4787.
  • Revision ID: john@arbash-meinel.com-20091104221246-xkbux8f428u9hn5i
Refactor the glob_expand code a bit, making the inner function more reusable.

For now backslash is always translated back into forward slash.

Show diffs side-by-side

added added

removed removed

Lines of Context:
345
345
        self.build_tree(['a/', 'a/b.c', 'a/c.c', 'a/c.h'])
346
346
        self.assertCommandLine([u'a/*.c'], '"a/*.c"')
347
347
        self.assertCommandLine([u'a/*.c'], "'a/*.c'")
 
348
 
 
349
    def test_slashes_changed(self):
 
350
        self.assertCommandLine([u'a/*.c'], '"a\\*.c"')
 
351
        # Expands the glob, but nothing matches
 
352
        self.assertCommandLine([u'a/*.c'], 'a\\*.c')
 
353
        self.assertCommandLine([u'a/foo.c'], 'a\\foo.c')