/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/test_win32utils.py

  • Committer: Alexander Belchenko
  • Date: 2009-06-25 10:05:17 UTC
  • mto: (4487.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4488.
  • Revision ID: bialix@ukr.net-20090625100517-cf5365wmiqzvfcp9
win32utils.py: get_app_path() can read path for wordpad.exe (data type_id is REG_EXPAND_SZ).

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
            self.assertEquals('iexplore.exe', b.lower())
165
165
            self.assertNotEquals('', d)
166
166
 
 
167
    def test_wordpad(self):
 
168
        # typical windows users should have wordpad in the system
 
169
        # but there is problem: its path has the format REG_EXPAND_SZ
 
170
        # so naive attempt to get the path is not working
 
171
        for a in ('wordpad', 'wordpad.exe'):
 
172
            p = get_app_path(a)
 
173
            d, b = os.path.split(p)
 
174
            self.assertEquals('wordpad.exe', b.lower())
 
175
            self.assertNotEquals('', d)
 
176
 
167
177
    def test_not_existing(self):
168
178
        p = get_app_path('not-existing')
169
179
        self.assertEquals('not-existing', p)