Ejemplo n.º 1
0
    def test_is_zipfile(self, zip_location):
        assert not current_zipfile()

        with mock.patch.object(sys, 'argv', [zip_location]):
            assert isinstance(current_zipfile(), ZipFile)
Ejemplo n.º 2
0
 def test_argv0_is_not_zipfile(self):
     with current_zipfile() as zipfile:
         assert not zipfile
Ejemplo n.º 3
0
 def test_argv0_is_not_zipfile(self):
     assert not current_zipfile()
Ejemplo n.º 4
0
 def test_is_zipfile(self, zip_location):
     with mock.patch.object(sys, "argv", [zip_location]):
         with current_zipfile() as zipfile:
             assert isinstance(zipfile, ZipFile)
Ejemplo n.º 5
0
    def test_is_zipfile(self, zip_location):
        assert not current_zipfile()

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