MCPcopy Index your code
hub / github.com/python/cpython / test_good_password

Method test_good_password

Lib/test/test_zipfile/test_core.py:2869–2873  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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"

Callers

nothing calls this directly

Calls 3

setpasswordMethod · 0.80
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected