MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / test_load_from_bytes

Method test_load_from_bytes

tests/test_04_PGP_objects.py:116–120  ·  view source on GitHub ↗
(self, kf)

Source from the content-addressed store, hash-verified

114 @pytest.mark.regression(issue=140)
115 @pytest.mark.parametrize('kf', _keyfiles, ids=[os.path.basename(f) for f in _keyfiles])
116 def test_load_from_bytes(self, kf):
117 with open(kf, 'rb') as tkf:
118 key, _ = PGPKey.from_blob(tkf.read())
119
120 assert key.fingerprint == _fingerprints[os.path.basename(kf)]
121
122 @pytest.mark.regression(issue=140)
123 @pytest.mark.parametrize('kf', _keyfiles, ids=[os.path.basename(f) for f in _keyfiles])

Callers

nothing calls this directly

Calls 1

from_blobMethod · 0.80

Tested by

no test coverage detected