コード例 #1
0
ファイル: test_win32utils.py プロジェクト: c0ns0le/cygwin
 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
ファイル: test_win32utils.py プロジェクト: Distrotech/bzr
 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
ファイル: test_win32utils.py プロジェクト: c0ns0le/cygwin
 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)