Test invalid attributes of NetscapeSPKI
diff --git a/OpenSSL/test/test_crypto.py b/OpenSSL/test/test_crypto.py
index 8f4db2c..3982439 100644
--- a/OpenSSL/test/test_crypto.py
+++ b/OpenSSL/test/test_crypto.py
@@ -1998,11 +1998,14 @@
self.assertTrue(isinstance(nspki, NetscapeSPKIType))
- # XXX sign
- # XXX verify
- # XXX get_pubkey
- # XXX set_pubkey
- # XXX getattr
+ def test_invalid_attribute(self):
+ """
+ Accessing a non-existent attribute of a L{NetscapeSPKI} instance causes
+ an L{AttributeError} to be raised.
+ """
+ nspki = NetscapeSPKI()
+ self.assertRaises(AttributeError, lambda: nspki.foo)
+
class RevokedTests(TestCase):