diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-12 15:00:56 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-12 16:26:08 -0600 |
commit | a498be81b54f8e4a9b07a71aabc434e372c309a6 (patch) | |
tree | deec95bc6dcf23736affd659fdac6a3898340100 /tests/test_x509.py | |
parent | b41c80b0cfa4fd9a14016c81557776cc01feedba (diff) | |
download | cryptography-a498be81b54f8e4a9b07a71aabc434e372c309a6.tar.gz cryptography-a498be81b54f8e4a9b07a71aabc434e372c309a6.tar.bz2 cryptography-a498be81b54f8e4a9b07a71aabc434e372c309a6.zip |
add repr for x509.NameAttribute
Diffstat (limited to 'tests/test_x509.py')
-rw-r--r-- | tests/test_x509.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py index 38231205..09275207 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -277,6 +277,13 @@ class TestNameAttribute(object): x509.ObjectIdentifier('oid'), 'value' ) != object() + def test_repr(self): + na = x509.NameAttribute(x509.ObjectIdentifier('2.5.4.3'), 'value') + assert repr(na) == ( + "<NameAttribute(oid=<ObjectIdentifier(oid=2.5.4.3, name=commonName" + ")>, value='value')>" + ) + class TestObjectIdentifier(object): def test_eq(self): |