dumb test for b64_encode
diff --git a/OpenSSL/test/test_crypto.py b/OpenSSL/test/test_crypto.py
index 9713e71..f41611b 100644
--- a/OpenSSL/test/test_crypto.py
+++ b/OpenSSL/test/test_crypto.py
@@ -2018,6 +2018,15 @@
self.assertRaises(AttributeError, lambda: nspki.foo)
+ def test_b64_encode(self):
+ """
+ L{NetscapeSPKI.b64_encode} encodes the certificate to a base64 blob.
+ """
+ nspki = NetscapeSPKI()
+ blob = nspki.b64_encode()
+ self.assertTrue(isinstance(blob, str))
+
+
class RevokedTests(TestCase):
"""