Lines Matching full:pytest
10 import pytest
38 pytest.skip(
43 @pytest.mark.requires_backend_interface(interface=DSABackend)
45 with pytest.raises(pytest.skip.Exception):
49 @pytest.mark.requires_backend_interface(interface=DSABackend)
56 with pytest.raises(ValueError):
59 @pytest.mark.parametrize(
102 @pytest.mark.parametrize(
158 with pytest.raises(ValueError):
161 @pytest.mark.parametrize(
272 with pytest.raises(ValueError):
280 @pytest.mark.parametrize(
346 with pytest.raises(ValueError):
353 @pytest.mark.requires_backend_interface(interface=DSABackend)
363 @pytest.mark.parametrize(
388 with pytest.raises(InvalidSignature):
395 with pytest.raises(InvalidSignature):
400 with pytest.raises(TypeError), \
401 pytest.warns(CryptographyDeprecationWarning):
406 with pytest.warns(CryptographyDeprecationWarning):
409 with pytest.raises(InvalidSignature):
411 with pytest.raises(AlreadyFinalized):
413 with pytest.raises(AlreadyFinalized):
443 with pytest.raises(ValueError):
448 with pytest.raises(TypeError), \
449 pytest.warns(CryptographyDeprecationWarning):
454 with pytest.raises(TypeError), \
455 pytest.warns(CryptographyDeprecationWarning):
461 @pytest.mark.requires_backend_interface(interface=DSABackend)
470 @pytest.mark.parametrize(
502 with pytest.warns(CryptographyDeprecationWarning):
506 with pytest.raises(AlreadyFinalized):
508 with pytest.raises(AlreadyFinalized):
537 with pytest.raises(ValueError):
549 with pytest.raises(TypeError):
552 with pytest.raises(TypeError):
555 with pytest.raises(TypeError):
568 with pytest.raises(TypeError):
571 with pytest.raises(TypeError):
594 with pytest.raises(TypeError):
597 with pytest.raises(TypeError):
680 @pytest.mark.requires_backend_interface(interface=DSABackend)
681 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
683 @pytest.mark.parametrize(
716 @pytest.mark.parametrize(
727 with pytest.raises(ValueError):
730 @pytest.mark.parametrize(
757 @pytest.mark.parametrize(
793 @pytest.mark.parametrize(
830 with pytest.raises(ValueError):
844 with pytest.raises(TypeError):
858 with pytest.raises(TypeError):
872 with pytest.raises(TypeError):
886 with pytest.raises(ValueError):
894 @pytest.mark.requires_backend_interface(interface=DSABackend)
895 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
897 @pytest.mark.parametrize(
951 with pytest.raises(TypeError):
959 with pytest.raises(TypeError):
964 with pytest.raises(ValueError):
969 @pytest.mark.parametrize(
993 with pytest.raises(ValueError):