diff --git a/tests/test_zipp.py b/tests/test_zipp.py index 9809090..eeb2bf8 100644 --- a/tests/test_zipp.py +++ b/tests/test_zipp.py @@ -530,3 +530,12 @@ def test_extract_orig_with_implied_dirs(self, alpharep): # wrap the zipfile for its side effect zipp.Path(zf) zf.extractall(source_path.parent) + + @pass_alpharep + def test_getinfo_missing(self, alpharep): + """ + Validate behavior of getinfo on original zipfile after wrapping. + """ + zipp.Path(alpharep) + with self.assertRaises(KeyError): + alpharep.getinfo('does-not-exist')