mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
17 lines
473 B
Python
17 lines
473 B
Python
"""Tests for letsencrypt.acme.jose.errors."""
|
|
import unittest
|
|
|
|
|
|
class UnrecognizedTypeErrorTest(unittest.TestCase):
|
|
def setUp(self):
|
|
from letsencrypt.acme.jose.errors import UnrecognizedTypeError
|
|
self.error = UnrecognizedTypeError('foo', {'type': 'foo'})
|
|
|
|
def test_str(self):
|
|
self.assertEqual(
|
|
"foo was not recognized, full message: {'type': 'foo'}",
|
|
str(self.error))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|