Lines Matching full:pytest
10 import pytest
39 pytest.skip(
44 @pytest.mark.requires_backend_interface(interface=DSABackend)
46 with pytest.raises(pytest.skip.Exception):
50 @pytest.mark.requires_backend_interface(interface=DSABackend)
57 with pytest.raises(ValueError):
60 @pytest.mark.parametrize(
72 pytest.skip("Small modulus blocked in FIPS mode")
105 @pytest.mark.parametrize(
161 with pytest.raises(ValueError):
164 @pytest.mark.parametrize(
275 with pytest.raises(ValueError):
284 @pytest.mark.parametrize(
350 with pytest.raises(ValueError):
380 @pytest.mark.requires_backend_interface(interface=DSABackend)
390 @pytest.mark.parametrize(
414 with pytest.raises(InvalidSignature):
421 with pytest.raises(InvalidSignature):
426 with pytest.raises(TypeError), pytest.warns(
433 with pytest.warns(CryptographyDeprecationWarning):
436 with pytest.raises(InvalidSignature):
438 with pytest.raises(AlreadyFinalized):
440 with pytest.raises(AlreadyFinalized):
470 with pytest.raises(ValueError):
475 with pytest.raises(TypeError), pytest.warns(
482 with pytest.raises(TypeError), pytest.warns(
488 @pytest.mark.requires_backend_interface(interface=DSABackend)
498 @pytest.mark.parametrize(
529 with pytest.warns(CryptographyDeprecationWarning):
533 with pytest.raises(AlreadyFinalized):
535 with pytest.raises(AlreadyFinalized):
564 with pytest.raises(ValueError):
576 with pytest.raises(TypeError):
579 with pytest.raises(TypeError):
582 with pytest.raises(TypeError):
594 with pytest.raises(TypeError):
597 with pytest.raises(TypeError):
617 with pytest.raises(TypeError):
620 with pytest.raises(TypeError):
690 @pytest.mark.requires_backend_interface(interface=DSABackend)
691 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
693 @pytest.mark.parametrize(
727 @pytest.mark.parametrize(
738 with pytest.raises(ValueError):
741 @pytest.mark.parametrize(
768 @pytest.mark.parametrize(
805 @pytest.mark.skip_fips(
808 @pytest.mark.parametrize(
845 with pytest.raises(ValueError):
859 with pytest.raises(TypeError):
873 with pytest.raises(TypeError):
887 with pytest.raises(TypeError):
901 with pytest.raises(ValueError):
909 @pytest.mark.requires_backend_interface(interface=DSABackend)
910 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
912 @pytest.mark.parametrize(
970 with pytest.raises(TypeError):
977 with pytest.raises(TypeError):
982 with pytest.raises(ValueError):
987 @pytest.mark.parametrize(
1014 with pytest.raises(ValueError):