summaryrefslogtreecommitdiffstats
path: root/python/rsa/tests/test_pem.py
blob: 867f678a0e07c41c26b6c5eeddbb82043bed265a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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-----')))