~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_win32utils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-06-27 00:29:53 UTC
  • mfrom: (4487.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090627002953-q4333x7hfvw1q3wz
(igc) Teach get_app_path to read wordpad.exe (Alexander Belchenko)

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)