~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_win32utils.py

  • Committer: Aaron Bentley
  • Date: 2009-06-29 14:51:13 UTC
  • mfrom: (4489 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4490.
  • Revision ID: aaron@aaronbentley.com-20090629145113-3w350dxgqppnzo4g
Merge bzr.dev

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)