From d5e35f92a55d4e80d13ce157a8aa8f36276ad327 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Wed, 16 Oct 2013 07:39:51 +0000 Subject: Update pkcs10 module functions to always load CSRs and allow selecting format. This change makes the pkcs10 module more consistent with the x509 module. Reviewed-By: Petr Viktorin --- ipatests/test_pkcs10/test_pkcs10.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ipatests/test_pkcs10') diff --git a/ipatests/test_pkcs10/test_pkcs10.py b/ipatests/test_pkcs10/test_pkcs10.py index 6b3534b33..c56c8d474 100644 --- a/ipatests/test_pkcs10/test_pkcs10.py +++ b/ipatests/test_pkcs10/test_pkcs10.py @@ -54,9 +54,8 @@ class test_update(object): Test simple CSR with no attributes """ csr = self.read_file("test0.csr") - request = pkcs10.load_certificate_request(csr) - subject = pkcs10.get_subject(request) + subject = pkcs10.get_subject(csr) assert(subject.common_name == 'test.example.com') assert(subject.state_name == 'California') @@ -69,7 +68,7 @@ class test_update(object): csr = self.read_file("test1.csr") request = pkcs10.load_certificate_request(csr) - subject = pkcs10.get_subject(request) + subject = request.subject assert(subject.common_name == 'test.example.com') assert(subject.state_name == 'California') @@ -86,7 +85,7 @@ class test_update(object): csr = self.read_file("test2.csr") request = pkcs10.load_certificate_request(csr) - subject = pkcs10.get_subject(request) + subject = request.subject assert(subject.common_name == 'test.example.com') assert(subject.state_name == 'California') -- cgit