~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: 2011-01-10 22:20:12 UTC
  • mfrom: (5582 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5599.
  • Revision ID: john@arbash-meinel.com-20110110222012-mtcqudkvmzwiufuc
Merge in the bzr.dev 5582

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007-2010 Canonical Ltd
 
1
# Copyright (C) 2007-2011 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
120
120
            ])
121
121
 
122
122
    def test_case_insensitive_globbing(self):
123
 
        self.requireFeature(tests.CaseInsCasePresFilenameFeature)
 
123
        if os.path.normcase("AbC") == "AbC":
 
124
            self.skip("Test requires case insensitive globbing function")
124
125
        self.build_ascii_tree()
125
126
        self._run_testset([
126
127
            [[u'A'], [u'A']],
216
217
    def test_appdata_not_using_environment(self):
217
218
        # Test that we aren't falling back to the environment
218
219
        first = win32utils.get_appdata_location()
219
 
        self._captureVar("APPDATA", None)
 
220
        self.overrideEnv("APPDATA", None)
220
221
        self.assertPathsEqual(first, win32utils.get_appdata_location())
221
222
 
222
223
    def test_appdata_matches_environment(self):
233
234
    def test_local_appdata_not_using_environment(self):
234
235
        # Test that we aren't falling back to the environment
235
236
        first = win32utils.get_local_appdata_location()
236
 
        self._captureVar("LOCALAPPDATA", None)
 
237
        self.overrideEnv("LOCALAPPDATA", None)
237
238
        self.assertPathsEqual(first, win32utils.get_local_appdata_location())
238
239
 
239
240
    def test_local_appdata_matches_environment(self):
326
327
            single_quotes_allowed=True)
327
328
 
328
329
    def test_case_insensitive_globs(self):
329
 
        self.requireFeature(tests.CaseInsCasePresFilenameFeature)
 
330
        if os.path.normcase("AbC") == "AbC":
 
331
            self.skip("Test requires case insensitive globbing function")
330
332
        self.build_tree(['a/', 'a/b.c', 'a/c.c', 'a/c.h'])
331
333
        self.assertCommandLine([u'A/b.c'], 'A/B*')
332
334