From a56ff419ddf772e32b4e39e4ec30c3cf6ccf1817 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 10 Feb 2015 17:26:32 -0500 Subject: Added test coverage for missing branch. --- tests/test_x509.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test_x509.py') 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' -- cgit v1.2.3