From 1cff0c08cfc7385f46a188f13f08ca5a87f85b48 Mon Sep 17 00:00:00 2001 From: Aviv Palivoda Date: Sat, 24 Jun 2017 18:12:26 +0300 Subject: Add DERSerializationBackend to test_dh serialization tests (#3717) --- tests/hazmat/primitives/test_dh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/hazmat/primitives/test_dh.py b/tests/hazmat/primitives/test_dh.py index bdc592e9..c351e5df 100644 --- a/tests/hazmat/primitives/test_dh.py +++ b/tests/hazmat/primitives/test_dh.py @@ -9,7 +9,7 @@ import os import pytest from cryptography.hazmat.backends.interfaces import ( - DHBackend, PEMSerializationBackend) + DERSerializationBackend, DHBackend, PEMSerializationBackend) from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import dh from cryptography.utils import bit_length, int_from_bytes @@ -371,6 +371,7 @@ class TestDH(object): @pytest.mark.requires_backend_interface(interface=DHBackend) @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend) +@pytest.mark.requires_backend_interface(interface=DERSerializationBackend) class TestDHPrivateKeySerialization(object): @pytest.mark.parametrize( @@ -540,6 +541,7 @@ class TestDHPrivateKeySerialization(object): @pytest.mark.requires_backend_interface(interface=DHBackend) @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend) +@pytest.mark.requires_backend_interface(interface=DERSerializationBackend) class TestDHPublicKeySerialization(object): @pytest.mark.parametrize( -- cgit v1.2.3