Lines Matching full:pytest
10 import pytest
42 @pytest.mark.skipif(
46 @pytest.mark.requires_backend_interface(interface=CipherBackend)
52 @pytest.mark.skipif(
56 @pytest.mark.requires_backend_interface(interface=CipherBackend)
63 with pytest.raises(OverflowError):
66 with pytest.raises(OverflowError):
74 with pytest.raises(TypeError):
77 with pytest.raises(ValueError):
80 @pytest.mark.parametrize(
93 with pytest.raises(TypeError):
96 with pytest.raises(TypeError):
102 with pytest.raises(ValueError):
105 with pytest.raises(ValueError):
111 with pytest.raises(InvalidTag):
125 @pytest.mark.parametrize(
141 with pytest.raises(InvalidTag):
149 @pytest.mark.parametrize(
191 @pytest.mark.requires_backend_interface(interface=CipherBackend)
198 with pytest.raises(OverflowError):
201 with pytest.raises(OverflowError):
214 with pytest.raises(ValueError):
217 with pytest.raises(ValueError):
220 with pytest.raises(TypeError):
228 with pytest.raises(ValueError):
231 with pytest.raises(ValueError):
234 @pytest.mark.parametrize(
263 with pytest.raises(InvalidTag):
286 with pytest.raises(ValueError):
289 @pytest.mark.parametrize(
300 with pytest.raises(TypeError):
304 with pytest.raises(TypeError):
307 with pytest.raises(ValueError):
311 with pytest.raises(TypeError):
314 with pytest.raises(ValueError):
331 with pytest.raises(InvalidTag):
366 @pytest.mark.requires_backend_interface(interface=CipherBackend)
373 with pytest.raises(OverflowError):
376 with pytest.raises(OverflowError):
379 @pytest.mark.parametrize("vector", _load_gcm_vectors())
384 pytest.skip("GCM does not support less than 64-bit IVs")
389 pytest.skip("Non-96-bit IVs unsupported in FIPS mode.")
398 with pytest.raises(InvalidTag):
407 @pytest.mark.parametrize(
418 with pytest.raises(TypeError):
421 with pytest.raises(TypeError):
424 @pytest.mark.parametrize("length", [7, 129])
429 pytest.skip("Non-96-bit IVs unsupported in FIPS mode.")
433 with pytest.raises(ValueError):
437 with pytest.raises(TypeError):
440 with pytest.raises(ValueError):
444 with pytest.raises(TypeError):
447 with pytest.raises(ValueError):