(self)
| 2867 | |
| 2868 | @requires_zlib() |
| 2869 | def test_good_password(self): |
| 2870 | self.zip.setpassword(b"python") |
| 2871 | self.assertEqual(self.zip.read("test.txt"), self.plain) |
| 2872 | self.zip2.setpassword(b"12345") |
| 2873 | self.assertEqual(self.zip2.read("zero"), self.plain2) |
| 2874 | |
| 2875 | def test_unicode_password(self): |
| 2876 | expected_msg = "pwd: expected bytes, got str" |
nothing calls this directly
no test coverage detected