diff options
author | Mark Adams <mark@markadams.me> | 2015-06-02 20:18:13 -0500 |
---|---|---|
committer | Mark Adams <mark@markadams.me> | 2015-06-02 21:11:08 -0500 |
commit | 12791c7875dda323835b8e0b9c687d17ba0e641b (patch) | |
tree | a28499defbe581e00dbd4c8ea4c8644f2d4a778c /tests/test_exceptions.py | |
parent | 32a577fc799010c54415bc5884b58a0f9ebf26a8 (diff) | |
download | pyjwt-12791c7875dda323835b8e0b9c687d17ba0e641b.tar.gz |
Added new options for requiring exp, iat, and nbf claims.
Thanks to David Black <dblack@atlassian.com> for the suggestion.
Diffstat (limited to 'tests/test_exceptions.py')
-rw-r--r-- | tests/test_exceptions.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py new file mode 100644 index 0000000..9e7f91e --- /dev/null +++ b/tests/test_exceptions.py @@ -0,0 +1,7 @@ +from jwt.exceptions import MissingRequiredClaimError + + +def test_missing_required_claim_error_has_proper_str(): + exc = MissingRequiredClaimError('abc') + + assert str(exc) == 'Token is missing the "abc" claim' |