Lines Matching full:pytest
12 import pytest
114 pytest.skip(
119 @pytest.mark.requires_backend_interface(interface=RSABackend)
121 with pytest.raises(pytest.skip.Exception):
146 @pytest.mark.requires_backend_interface(interface=RSABackend)
148 @pytest.mark.parametrize(
164 with pytest.raises(ValueError):
169 with pytest.raises(ValueError):
175 with pytest.raises(ValueError):
180 with pytest.raises(ValueError):
185 @pytest.mark.parametrize(
222 @pytest.mark.parametrize(
228 @pytest.mark.supported(
253 @pytest.mark.parametrize(
260 @pytest.mark.supported(
290 @pytest.mark.parametrize(
298 @pytest.mark.supported(
318 with pytest.raises(ValueError):
327 @pytest.mark.supported(
357 @pytest.mark.requires_backend_interface(interface=RSABackend)
359 @pytest.mark.supported(
365 @pytest.mark.parametrize(
394 @pytest.mark.supported(
403 @pytest.mark.parametrize(
451 @pytest.mark.parametrize(
467 @pytest.mark.supported(
490 @pytest.mark.supported(
499 @pytest.mark.supported(
505 with pytest.raises(ValueError):
515 @pytest.mark.supported(
526 with pytest.raises(ValueError):
536 @pytest.mark.supported(
544 with pytest.warns(CryptographyDeprecationWarning):
548 with pytest.raises(AlreadyFinalized):
550 with pytest.raises(AlreadyFinalized):
560 with pytest.raises(TypeError):
563 @pytest.mark.supported(
581 @pytest.mark.supported(
589 with pytest.raises(ValueError):
596 @pytest.mark.supported(
619 @pytest.mark.supported(
637 @pytest.mark.supported(
642 @pytest.mark.supported(
655 @pytest.mark.supported(
669 with pytest.raises(ValueError):
672 @pytest.mark.supported(
680 with pytest.raises(TypeError), \
681 pytest.warns(CryptographyDeprecationWarning):
687 @pytest.mark.supported(
695 with pytest.raises(TypeError), \
696 pytest.warns(CryptographyDeprecationWarning):
704 @pytest.mark.requires_backend_interface(interface=RSABackend)
706 @pytest.mark.supported(
712 @pytest.mark.parametrize(
733 @pytest.mark.supported(
745 with pytest.raises(InvalidSignature):
780 with pytest.raises(InvalidSignature):
788 @pytest.mark.supported(
800 with pytest.raises(InvalidSignature):
805 @pytest.mark.supported(
814 @pytest.mark.parametrize(
838 @pytest.mark.supported(
860 with pytest.raises(InvalidSignature):
871 @pytest.mark.supported(
895 with pytest.raises(InvalidSignature):
906 @pytest.mark.supported(
930 with pytest.raises(InvalidSignature):
941 @pytest.mark.supported(
954 with pytest.warns(CryptographyDeprecationWarning):
962 with pytest.raises(AlreadyFinalized):
964 with pytest.raises(AlreadyFinalized):
975 @pytest.mark.supported(
985 with pytest.raises(TypeError), \
986 pytest.warns(CryptographyDeprecationWarning):
996 with pytest.raises(TypeError):
999 @pytest.mark.supported(
1019 @pytest.mark.supported(
1028 @pytest.mark.supported(
1039 with pytest.raises(ValueError):
1050 @pytest.mark.supported(
1072 with pytest.raises(InvalidSignature):
1114 with pytest.raises(ValueError):
1118 @pytest.mark.requires_backend_interface(interface=RSABackend)
1120 test_rsa_pss_mgf1_sha1 = pytest.mark.supported(
1145 test_rsa_pss_mgf1_sha224 = pytest.mark.supported(
1170 test_rsa_pss_mgf1_sha256 = pytest.mark.supported(
1195 test_rsa_pss_mgf1_sha384 = pytest.mark.supported(
1220 test_rsa_pss_mgf1_sha512 = pytest.mark.supported(
1246 @pytest.mark.requires_backend_interface(interface=RSABackend)
1248 test_rsa_pkcs1v15_verify_sha1 = pytest.mark.supported(
1266 test_rsa_pkcs1v15_verify_sha224 = pytest.mark.supported(
1284 test_rsa_pkcs1v15_verify_sha256 = pytest.mark.supported(
1302 test_rsa_pkcs1v15_verify_sha384 = pytest.mark.supported(
1320 test_rsa_pkcs1v15_verify_sha512 = pytest.mark.supported(
1341 with pytest.raises(TypeError):
1345 with pytest.raises(TypeError):
1354 with pytest.raises(ValueError):
1380 with pytest.raises(TypeError):
1392 with pytest.raises(TypeError):
1400 @pytest.mark.requires_backend_interface(interface=RSABackend)
1402 @pytest.mark.supported(
1408 @pytest.mark.parametrize(
1440 @pytest.mark.supported(
1448 with pytest.raises(ValueError):
1454 @pytest.mark.supported(
1462 with pytest.raises(ValueError):
1468 @pytest.mark.supported(
1480 with pytest.raises(ValueError):
1486 @pytest.mark.supported(
1496 @pytest.mark.parametrize(
1528 @pytest.mark.supported(
1538 @pytest.mark.parametrize(
1566 @pytest.mark.supported(
1593 with pytest.raises(ValueError):
1603 @pytest.mark.supported(
1631 with pytest.raises(ValueError):
1654 @pytest.mark.requires_backend_interface(interface=RSABackend)
1656 @pytest.mark.supported(
1666 @pytest.mark.parametrize(
1691 @pytest.mark.supported(
1701 @pytest.mark.parametrize(
1732 @pytest.mark.supported(
1738 @pytest.mark.parametrize(
1757 @pytest.mark.parametrize(
1777 with pytest.raises(ValueError):
1784 with pytest.raises(ValueError):
1796 with pytest.raises(TypeError):
1814 @pytest.mark.requires_backend_interface(interface=RSABackend)
1850 with pytest.raises(TypeError):
1853 with pytest.raises(TypeError):
1856 @pytest.mark.parametrize(
1870 with pytest.raises(TypeError):
1880 @pytest.mark.parametrize(
1893 with pytest.raises(ValueError):
1896 @pytest.mark.parametrize(
1920 with pytest.raises(ValueError):
2005 @pytest.mark.parametrize(
2028 with pytest.raises(ValueError):
2032 @pytest.mark.requires_backend_interface(interface=RSABackend)
2033 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
2035 @pytest.mark.parametrize(
2064 @pytest.mark.parametrize(
2075 with pytest.raises(ValueError):
2078 @pytest.mark.parametrize(
2101 @pytest.mark.parametrize(
2137 @pytest.mark.parametrize(
2172 with pytest.raises(ValueError):
2181 with pytest.raises(TypeError):
2190 with pytest.raises(TypeError):
2199 with pytest.raises(TypeError):
2208 with pytest.raises(ValueError):
2216 @pytest.mark.requires_backend_interface(interface=RSABackend)
2217 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
2219 @pytest.mark.parametrize(
2275 with pytest.raises(ValueError):
2279 with pytest.raises(ValueError):
2283 with pytest.raises(ValueError):
2288 with pytest.raises(ValueError):
2296 with pytest.raises(TypeError):
2301 with pytest.raises(TypeError):
2304 @pytest.mark.parametrize(
2328 with pytest.raises(ValueError):