mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Add test for Error.__str__
This commit is contained in:
parent
c713071eb7
commit
cf1e29fbdf
1 changed files with 6 additions and 0 deletions
|
|
@ -71,6 +71,12 @@ class ErrorTest(unittest.TestCase):
|
|||
self.assertTrue(is_acme_error(Error.with_code('badCSR')))
|
||||
self.assertRaises(ValueError, Error.with_code, 'not an ACME error code')
|
||||
|
||||
def test_str(self):
|
||||
self.assertEqual(
|
||||
str(self.error),
|
||||
u"{0.typ} :: {0.description} :: {0.detail} :: {0.title}"
|
||||
.format(self.error))
|
||||
|
||||
|
||||
class ConstantTest(unittest.TestCase):
|
||||
"""Tests for acme.messages._Constant."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue