Lines Matching full:pytest
11 import pytest
44 pytest.skip("DH x9.42 serialization is not supported")
53 with pytest.raises(TypeError):
56 with pytest.raises(TypeError):
59 with pytest.raises(TypeError):
62 with pytest.raises(ValueError):
66 with pytest.raises(ValueError):
75 with pytest.raises(TypeError):
87 with pytest.raises(TypeError):
90 with pytest.raises(TypeError):
98 with pytest.raises(TypeError):
101 with pytest.raises(TypeError):
144 @pytest.mark.requires_backend_interface(interface=DHBackend)
147 with pytest.raises(ValueError):
151 with pytest.raises(ValueError):
154 @pytest.mark.skip_fips(reason="non-FIPS parameters")
167 @pytest.mark.parametrize(
179 pytest.skip("modulus too small for FIPS mode")
190 @pytest.mark.skip_fips(reason="non-FIPS parameters")
191 @pytest.mark.parametrize(
202 @pytest.mark.skip_fips(reason="modulus too small for FIPS")
203 @pytest.mark.parametrize("with_q", [False, True])
238 @pytest.mark.skip_fips(reason="FIPS requires specific parameters")
248 with pytest.raises(ValueError):
251 @pytest.mark.skip_fips(reason="FIPS requires key size >= 2048")
252 @pytest.mark.parametrize("with_q", [False, True])
322 @pytest.mark.skip_fips(reason="key_size too small for FIPS")
353 @pytest.mark.parametrize(
365 pytest.skip("modulus too small for FIPS mode")
383 with pytest.raises(ValueError):
393 @pytest.mark.skip_fips(reason="key_size too small for FIPS")
403 @pytest.mark.parametrize(
414 pytest.skip("modulus too small for FIPS mode")
417 pytest.skip("DH keys less than 512 bits are unsupported")
427 @pytest.mark.skip_fips(reason="non-FIPS parameters")
428 @pytest.mark.parametrize(
451 @pytest.mark.requires_backend_interface(interface=DHBackend)
452 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
453 @pytest.mark.requires_backend_interface(interface=DERSerializationBackend)
455 @pytest.mark.parametrize(
475 @pytest.mark.parametrize(
487 with pytest.raises(ValueError):
490 @pytest.mark.skip_fips(reason="non-FIPS parameters")
491 @pytest.mark.parametrize(
535 @pytest.mark.skip_fips(reason="non-FIPS parameters")
536 @pytest.mark.parametrize(
593 with pytest.raises(ValueError):
603 with pytest.raises(TypeError):
613 with pytest.raises(ValueError):
623 with pytest.raises(TypeError):
633 with pytest.raises(ValueError):
641 @pytest.mark.requires_backend_interface(interface=DHBackend)
642 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
643 @pytest.mark.requires_backend_interface(interface=DERSerializationBackend)
645 @pytest.mark.parametrize(
663 @pytest.mark.parametrize(
706 @pytest.mark.parametrize(
756 with pytest.raises(TypeError):
764 with pytest.raises(ValueError):
770 @pytest.mark.requires_backend_interface(interface=DHBackend)
771 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
772 @pytest.mark.requires_backend_interface(interface=DERSerializationBackend)
774 @pytest.mark.parametrize(
790 @pytest.mark.parametrize(
833 @pytest.mark.parametrize(
879 @pytest.mark.parametrize(
907 with pytest.raises(ValueError):
912 with pytest.raises(TypeError):
919 with pytest.raises(ValueError):
924 with pytest.raises(TypeError):