commit | a56ff419ddf772e32b4e39e4ec30c3cf6ccf1817 | [log] [tgz] |
---|---|---|
author | Alex Gaynor <alex.gaynor@gmail.com> | Tue Feb 10 17:26:32 2015 -0500 |
committer | Alex Gaynor <alex.gaynor@gmail.com> | Tue Feb 10 17:26:32 2015 -0500 |
tree | c27324abf796e105727f33b9c7b2813e808838e6 | |
parent | cd18ac09b20670a6e448d778a684ecffdf01c3c6 [diff] |
Added test coverage for missing branch.
diff --git a/tests/test_x509.py b/tests/test_x509.py index cf58324..3823120 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py
@@ -251,6 +251,10 @@ 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'