Fix typos.

This commit is contained in:
Jakub Warmuz 2015-02-10 22:04:04 +00:00
parent d9e4a5ab86
commit edd207fef9
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA
3 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@ class Error(Exception):
class ValidationError(Error):
"""ACME message validation error."""
class UnrecognnizedMessageTypeError(ValidationError):
class UnrecognizedMessageTypeError(ValidationError):
"""Unrecognized ACME message type error."""
class SchemaValidationError(ValidationError):

View file

@ -33,7 +33,7 @@ class Message(util.JSONDeSerializable, util.ImmutableMap):
"""Get JSON serializable object.
:returns: Serializable JSON object representing ACME message.
:meth:`validate` will almost certianly not work, due to reasons
:meth:`validate` will almost certainly not work, due to reasons
explained in :class:`letsencrypt.acme.interfaces.IJSONSerializable`.
:rtype: dict
@ -80,7 +80,7 @@ class Message(util.JSONDeSerializable, util.ImmutableMap):
try:
msg_cls = cls.TYPES[msg_type]
except KeyError:
raise errors.UnrecognnizedMessageTypeError(msg_type)
raise errors.UnrecognizedMessageTypeError(msg_type)
if validate:
msg_cls.validate_json(jobj)

View file

@ -65,7 +65,7 @@ class MessageTest(unittest.TestCase):
self.assertRaises(errors.ValidationError, self._from_json, {})
def test_from_json_unknown_type_fails(self):
self.assertRaises(errors.UnrecognnizedMessageTypeError,
self.assertRaises(errors.UnrecognizedMessageTypeError,
self._from_json, {'type': 'bar'})
@mock.patch('letsencrypt.acme.messages.Message.TYPES')