summaryrefslogtreecommitdiff
path: root/tests/test_pem.py
diff options
context:
space:
mode:
authorYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-16 14:58:32 +0530
committerYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-16 14:58:32 +0530
commit0da93e8d3f2fa88401acfb92f4370fd0fc2089e6 (patch)
tree133988336aaefb98b008dbaafab17a370c9b87f9 /tests/test_pem.py
parent5c93a22e957c65df3fa146f3423a87d93753fc85 (diff)
downloadrsa-0da93e8d3f2fa88401acfb92f4370fd0fc2089e6.tar.gz
Moves incompatible doctests to unit test modules.
Diffstat (limited to 'tests/test_pem.py')
-rw-r--r--tests/test_pem.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_pem.py b/tests/test_pem.py
new file mode 100644
index 0000000..867f678
--- /dev/null
+++ b/tests/test_pem.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+
+import unittest2
+from rsa._compat import b
+from rsa.pem import _markers
+
+
+class Test__markers(unittest2.TestCase):
+ def test_values(self):
+ self.assertEqual(_markers('RSA PRIVATE KEY'),
+ (b('-----BEGIN RSA PRIVATE KEY-----'),
+ b('-----END RSA PRIVATE KEY-----')))