コード例 #1
0
ファイル: test_install.py プロジェクト: VDBWRAIR/pyBWA
 def test_in_path( self ):
     env = {'PATH': self.tempdir}
     pth = self.temp_bwa()
     # Executable
     os.chmod( pth, 0755 )
     with patch( 'os.environ', env ) as env:
         eq_( pth, install.which( 'bwa' ) )
コード例 #2
0
ファイル: test_install.py プロジェクト: VDBWRAIR/pyBWA
 def test_in_path_not_executable( self ):
     env = {'PATH': self.tempdir}
     pth = self.temp_bwa()
     # Not executable
     os.chmod( pth, 0644 )
     print os.stat( pth )
     with patch( 'os.environ', env ) as env:
         eq_( None, install.which( 'bwa' ) )
コード例 #3
0
ファイル: test_install.py プロジェクト: VDBWRAIR/pyBWA
 def test_not_in_path( self ):
     env = {'PATH': '/usr/bin'}
     pth = self.temp_bwa()
     with patch( 'os.environ', env ) as env:
         eq_( None, install.which( 'bwa' ) )