Lines Matching full:pytest
10 import pytest
26 @pytest.mark.parametrize(("key", "keysize"), [
36 with pytest.raises(ValueError):
40 with pytest.raises(TypeError, match="key must be bytes"):
45 @pytest.mark.requires_backend_interface(interface=CipherBackend)
46 @pytest.mark.parametrize(
51 with pytest.raises(ValueError):
55 with pytest.raises(TypeError):
59 with pytest.raises(ValueError):
62 @pytest.mark.requires_backend_interface(interface=CipherBackend)
64 with pytest.raises(ValueError):
69 @pytest.mark.parametrize(("key", "keysize"), [
79 with pytest.raises(ValueError):
83 with pytest.raises(TypeError, match="key must be bytes"):
88 @pytest.mark.parametrize("key", [
98 with pytest.raises(ValueError):
102 with pytest.raises(TypeError, match="key must be bytes"):
107 @pytest.mark.parametrize(("key", "keysize"), [
115 with pytest.raises(ValueError):
119 with pytest.raises(TypeError, match="key must be bytes"):
124 @pytest.mark.parametrize(("key", "keysize"), [
132 with pytest.raises(ValueError):
136 with pytest.raises(TypeError, match="key must be bytes"):
141 @pytest.mark.parametrize(("key", "keysize"), [
155 with pytest.raises(ValueError):
159 with pytest.raises(TypeError, match="key must be bytes"):
169 with pytest.raises(ValueError):
173 with pytest.raises(TypeError, match="key must be bytes"):
183 with pytest.raises(ValueError):
187 with pytest.raises(TypeError, match="key must be bytes"):
198 @pytest.mark.supported(
204 @pytest.mark.requires_backend_interface(interface=CipherBackend)
206 @pytest.mark.parametrize(
224 @pytest.mark.supported(
249 @pytest.mark.supported(
268 with pytest.raises(AlreadyFinalized):
271 @pytest.mark.parametrize(
296 with pytest.raises(ValueError):
299 @pytest.mark.supported(
310 with pytest.raises(ValueError):