Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_is_zipfile(self, zip_location):
with mock.patch.object(sys, "argv", [zip_location]):
assert isinstance(current_zipfile(), ZipFile)
def test_argv0_is_not_zipfile(self):
assert not current_zipfile()