diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-14 07:56:36 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-14 07:56:36 -0600 |
commit | 8b21a4a34a82ca0e73ca67bd3f148b25d6c7bdc6 (patch) | |
tree | 9f155d096a6d7343e28ff17f8107c04d3c982a1e /docs | |
parent | 5ab6d6a5c05572bd1c75f05baf264a2d0001894a (diff) | |
download | cryptography-8b21a4a34a82ca0e73ca67bd3f148b25d6c7bdc6.tar.gz cryptography-8b21a4a34a82ca0e73ca67bd3f148b25d6c7bdc6.tar.bz2 cryptography-8b21a4a34a82ca0e73ca67bd3f148b25d6c7bdc6.zip |
simplify things based on review feedback
Diffstat (limited to 'docs')
-rw-r--r-- | docs/x509.rst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/x509.rst b/docs/x509.rst index 473efc36..099d3f87 100644 --- a/docs/x509.rst +++ b/docs/x509.rst @@ -195,12 +195,13 @@ X.509 Certificate Object .. doctest:: - >>> assert len(cert.subject) == 3 - >>> attributes = [] - >>> for attribute in cert.subject: - ... attributes.append(attribute) - >>> len(attributes) + >>> len(cert.subject) 3 + >>> for attribute in cert.subject: + ... print(attribute) + <NameAttribute(oid=<ObjectIdentifier(oid=2.5.4.6, name=countryName)>, value=u'US')> + <NameAttribute(oid=<ObjectIdentifier(oid=2.5.4.10, name=organizationName)>, value=u'Test Certificates 2011')> + <NameAttribute(oid=<ObjectIdentifier(oid=2.5.4.3, name=commonName)>, value=u'Good CA')> .. method:: get_attributes_for_oid(oid) |