From 7bdf657f5971bb29567edbbbf044a65014a59d94 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sun, 5 Jul 2015 08:55:44 -0500 Subject: change unsupported generalname test to use x400address --- tests/test_x509_ext.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tests/test_x509_ext.py') diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py index 0ef84e79..d15d6669 100644 --- a/tests/test_x509_ext.py +++ b/tests/test_x509_ext.py @@ -1382,18 +1382,16 @@ class TestRSASubjectAlternativeNameExtension(object): dns = ext.value.get_values_for_type(x509.DNSName) assert dns == [u'*.\u043f\u044b\u043a\u0430.cryptography'] - def test_unsupported_other_name(self, backend): + def test_unsupported_gn(self, backend): cert = _load_cert( - os.path.join( - "x509", "custom", "san_other_name.pem" - ), - x509.load_pem_x509_certificate, + os.path.join("x509", "san_x400address.der"), + x509.load_der_x509_certificate, backend ) with pytest.raises(x509.UnsupportedGeneralNameType) as exc: cert.extensions - assert exc.value.type == 0 + assert exc.value.type == 3 def test_registered_id(self, backend): cert = _load_cert( -- cgit v1.2.3