Repository URL to install this package:
|
Version:
1.1.0 ▾
|
ó
Z Uc @ s{ d d l m Z d d l m Z d d l Z d d l m Z d Z d e j f d YZ e d k rw e j
n d S(
iÿÿÿÿ( t timegm( t datetimeNi ( t unittestc C s t t j j S( N( R R t utcnowt utctimetuple( ( ( s9 /Users/jpadilla/Projects/Personal/pyjwt/tests/test_jwt.pyt
utc_timestamp s t TestJWTc B s e Z d Z d Z d Z RS( s
These tests exist primarily to ensure that calls to jwt.encode and
jwt.decode don't explode. Most functionality is tested by the PyJWT class
tests. This is primarily a sanity check to make sure we don't break the
public global functions.
c C s) i d d 6t d d 6d d 6| _ d S( Nt jefft issi t expt insanityt claim( R t payload( t self( ( s9 /Users/jpadilla/Projects/Personal/pyjwt/tests/test_jwt.pyt setUp s c C sD d } t j | j | } t j | | } | j | | j d S( Nt secret( t jwtt encodeR t decodet assertEqual( R
R t jwt_messaget decoded_payload( ( s9 /Users/jpadilla/Projects/Personal/pyjwt/tests/test_jwt.pyt test_encode_decode s ( t __name__t
__module__t __doc__R R ( ( ( s9 /Users/jpadilla/Projects/Personal/pyjwt/tests/test_jwt.pyR
s t __main__( t calendarR R R t compatR R t TestCaseR R t main( ( ( s9 /Users/jpadilla/Projects/Personal/pyjwt/tests/test_jwt.pyt <module> s