diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-10 19:04:10 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-10 19:04:10 -0600 |
commit | c39abdbca387fe923a410478af1abb37561a7220 (patch) | |
tree | c27324abf796e105727f33b9c7b2813e808838e6 /tests | |
parent | cd18ac09b20670a6e448d778a684ecffdf01c3c6 (diff) | |
parent | a56ff419ddf772e32b4e39e4ec30c3cf6ccf1817 (diff) | |
download | cryptography-c39abdbca387fe923a410478af1abb37561a7220.tar.gz cryptography-c39abdbca387fe923a410478af1abb37561a7220.tar.bz2 cryptography-c39abdbca387fe923a410478af1abb37561a7220.zip |
Merge pull request #1650 from alex/x509-cov
Added test coverage for missing branch.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_x509.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py index cf583247..38231205 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -251,6 +251,10 @@ class TestECDSACertificate(object): class TestNameAttribute(object): + def test_init_bad_oid(self): + with pytest.raises(TypeError): + x509.NameAttribute(None, 'value') + def test_eq(self): assert x509.NameAttribute( x509.ObjectIdentifier('oid'), 'value' |