Lines Matching full:pytest

12 import pytest
38 @pytest.mark.requires_backend_interface(interface=RSABackend)
39 @pytest.mark.parametrize(
58 @pytest.mark.requires_backend_interface(interface=RSABackend)
59 @pytest.mark.parametrize(
86 @pytest.mark.requires_backend_interface(interface=DERSerializationBackend)
88 @pytest.mark.requires_backend_interface(interface=RSABackend)
89 @pytest.mark.parametrize(
110 @pytest.mark.requires_backend_interface(interface=DSABackend)
111 @pytest.mark.parametrize(
132 @pytest.mark.parametrize(
138 @pytest.mark.requires_backend_interface(interface=RSABackend)
143 with pytest.raises(TypeError):
152 @pytest.mark.parametrize(
159 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
175 @pytest.mark.parametrize(
181 @pytest.mark.requires_backend_interface(interface=RSABackend)
186 with pytest.raises(ValueError):
195 @pytest.mark.parametrize(
201 @pytest.mark.requires_backend_interface(interface=RSABackend)
206 with pytest.raises(TypeError):
215 @pytest.mark.parametrize(
224 @pytest.mark.requires_backend_interface(interface=RSABackend)
228 with pytest.raises(TypeError):
240 with pytest.raises(ValueError):
245 with pytest.raises(ValueError):
269 with pytest.raises(ValueError):
274 with pytest.raises(ValueError):
291 with pytest.raises(ValueError):
294 with pytest.raises(ValueError):
299 @pytest.mark.parametrize(
309 @pytest.mark.requires_backend_interface(interface=RSABackend)
324 with pytest.raises(ValueError):
327 @pytest.mark.parametrize(
336 @pytest.mark.requires_backend_interface(interface=DSABackend)
348 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
368 with pytest.raises(ValueError):
374 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
376 @pytest.mark.parametrize(
412 @pytest.mark.parametrize(
433 @pytest.mark.parametrize(
442 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
457 @pytest.mark.parametrize(
478 @pytest.mark.parametrize(
497 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
556 @pytest.mark.parametrize(
567 with pytest.raises(TypeError):
575 @pytest.mark.parametrize(
586 with pytest.raises(TypeError):
594 @pytest.mark.parametrize(
605 with pytest.raises(ValueError):
613 @pytest.mark.parametrize(
627 with pytest.raises(TypeError):
638 with pytest.raises(ValueError):
643 with pytest.raises(ValueError):
651 with pytest.raises(ValueError):
657 with pytest.raises(ValueError):
673 with pytest.raises(ValueError):
678 with pytest.raises(ValueError):
702 with pytest.raises(ValueError):
707 with pytest.raises(ValueError):
755 with pytest.raises(ValueError):
760 with pytest.raises(ValueError):
789 with pytest.raises(ValueError):
794 with pytest.raises(ValueError):
907 @pytest.mark.parametrize(
914 with pytest.raises(ValueError):
923 @pytest.mark.parametrize(
940 @pytest.mark.requires_backend_interface(interface=RSABackend)
945 with pytest.raises(UnsupportedAlgorithm):
951 with pytest.raises(ValueError):
957 with pytest.raises(ValueError):
963 with pytest.raises(ValueError):
968 with pytest.raises(ValueError):
996 with pytest.raises(ValueError):
1012 with pytest.raises(ValueError):
1051 @pytest.mark.requires_backend_interface(interface=DSABackend)
1056 with pytest.raises(ValueError):
1089 with pytest.raises(ValueError):
1108 with pytest.raises(ValueError):
1162 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
1243 with pytest.raises(ValueError):
1252 with pytest.raises(ValueError):
1263 with pytest.raises(NotImplementedError):
1273 with pytest.raises(ValueError):
1279 with pytest.raises(ValueError):
1283 with pytest.raises(ValueError):
1287 @pytest.mark.supported(
1324 @pytest.mark.parametrize(
1351 @pytest.mark.supported(
1388 @pytest.mark.parametrize(