MCPcopy
hub / github.com/pyca/cryptography / test_non_bytes

Method test_non_bytes

tests/hazmat/primitives/test_padding.py:165–171  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

163 unpadder.finalize()
164
165 def test_non_bytes(self):
166 padder = padding.ANSIX923(128).padder()
167 with pytest.raises(TypeError):
168 padder.update("abc") # type: ignore[arg-type]
169 unpadder = padding.ANSIX923(128).unpadder()
170 with pytest.raises(TypeError):
171 unpadder.update("abc") # type: ignore[arg-type]
172
173 def test_zany_py2_bytes_subclass(self):
174 class mybytes(bytes): # noqa: N801

Callers

nothing calls this directly

Calls 3

padderMethod · 0.45
updateMethod · 0.45
unpadderMethod · 0.45

Tested by

no test coverage detected