Пример #1
0
 def test_iexplore(self):
     # typical windows users should have IE installed
     for a in ('iexplore', 'iexplore.exe'):
         p = get_app_path(a)
         d, b = os.path.split(p)
         self.assertEquals('iexplore.exe', b.lower())
         self.assertNotEquals('', d)
Пример #2
0
 def test_iexplore(self):
     # typical windows users should have IE installed
     for a in ('iexplore', 'iexplore.exe'):
         p = get_app_path(a)
         d, b = os.path.split(p)
         self.assertEqual('iexplore.exe', b.lower())
         self.assertNotEqual('', d)
Пример #3
0
 def test_wordpad(self):
     # typical windows users should have wordpad in the system
     # but there is problem: its path has the format REG_EXPAND_SZ
     # so naive attempt to get the path is not working
     self.requireFeature(Win32ApiFeature)
     for a in ('wordpad', 'wordpad.exe'):
         p = get_app_path(a)
         d, b = os.path.split(p)
         self.assertEquals('wordpad.exe', b.lower())
         self.assertNotEquals('', d)
Пример #4
0
 def test_wordpad(self):
     # typical windows users should have wordpad in the system
     # but there is problem: its path has the format REG_EXPAND_SZ
     # so naive attempt to get the path is not working
     self.requireFeature(Win32ApiFeature)
     for a in ('wordpad', 'wordpad.exe'):
         p = get_app_path(a)
         d, b = os.path.split(p)
         self.assertEqual('wordpad.exe', b.lower())
         self.assertNotEqual('', d)
Пример #5
0
 def test_not_existing(self):
     p = get_app_path('not-existing')
     self.assertEquals('not-existing', p)
Пример #6
0
 def test_not_existing(self):
     p = get_app_path('not-existing')
     self.assertEqual('not-existing', p)