Yesudeep Mangalapilly | 5bfe5ff | 2011-08-16 14:58:32 +0530 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # -*- coding: utf-8 -*- |
Roy Kokkelkoren | 0659aac | 2015-10-25 16:12:11 +0100 | [diff] [blame] | 3 | # |
| 4 | # Copyright 2011 Sybren A. Stüvel <sybren@stuvel.eu> |
| 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
Sybren A. Stüvel | 3934ab4 | 2016-02-05 16:01:20 +0100 | [diff] [blame] | 10 | # https://www.apache.org/licenses/LICENSE-2.0 |
Roy Kokkelkoren | 0659aac | 2015-10-25 16:12:11 +0100 | [diff] [blame] | 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
Yesudeep Mangalapilly | 5bfe5ff | 2011-08-16 14:58:32 +0530 | [diff] [blame] | 17 | |
Sybren A. Stüvel | ed1c81d | 2016-01-14 12:23:32 +0100 | [diff] [blame] | 18 | import unittest |
Yesudeep Mangalapilly | 5bfe5ff | 2011-08-16 14:58:32 +0530 | [diff] [blame] | 19 | from rsa._compat import b |
| 20 | from rsa.pem import _markers |
| 21 | |
| 22 | |
Sybren A. Stüvel | d3d1034 | 2016-01-22 11:36:06 +0100 | [diff] [blame] | 23 | class TestMarkers(unittest.TestCase): |
Yesudeep Mangalapilly | 5bfe5ff | 2011-08-16 14:58:32 +0530 | [diff] [blame] | 24 | def test_values(self): |
| 25 | self.assertEqual(_markers('RSA PRIVATE KEY'), |
| 26 | (b('-----BEGIN RSA PRIVATE KEY-----'), |
| 27 | b('-----END RSA PRIVATE KEY-----'))) |