コード例 #1
0
ファイル: test_bootstrap.py プロジェクト: yunstanford/shiv
    def test_is_zipfile(self, zip_location):
        assert not current_zipfile()

        with mock.patch.object(sys, 'argv', [zip_location]):
            assert isinstance(current_zipfile(), ZipFile)
コード例 #2
0
ファイル: test_bootstrap.py プロジェクト: timgates42/shiv
 def test_argv0_is_not_zipfile(self):
     with current_zipfile() as zipfile:
         assert not zipfile
コード例 #3
0
 def test_argv0_is_not_zipfile(self):
     assert not current_zipfile()
コード例 #4
0
ファイル: test_bootstrap.py プロジェクト: timgates42/shiv
 def test_is_zipfile(self, zip_location):
     with mock.patch.object(sys, "argv", [zip_location]):
         with current_zipfile() as zipfile:
             assert isinstance(zipfile, ZipFile)
コード例 #5
0
ファイル: test_bootstrap.py プロジェクト: digideskio/shiv
    def test_is_zipfile(self, zip_location):
        assert not current_zipfile()

        with mock.patch.object(sys, 'argv', [zip_location]):
            assert isinstance(current_zipfile(), ZipFile)