Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr keyword Call NameLoad keyword Num body Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A Tests for Expiring Token models.

Classes:
    ExpiringTokenTestCase: Tests ExpiringToken.
 datetime timedelta time sleep django.contrib.auth.models User django.test TestCase rest_framework_expiring_authtoken.models ExpiringToken ExpiringTokenTestCase N/A TestCase N/A N/A Test case for Expiring Token model. setUp N/A N/A self N/A N/A N/A Create a user and associated token. N/A N/A self username test N/A N/A self email test@test.com N/A N/A self password test N/A N/A self user N/A N/A N/A User objects create_user username N/A self username email N/A self email password N/A self password N/A N/A self key abc123 N/A N/A self token N/A N/A N/A ExpiringToken objects create user N/A self user key N/A self key N/A test_expired_indated N/A N/A self N/A N/A N/A Check the expired method returns false for an indated token. N/A N/A N/A self assertFalse N/A N/A N/A self token expired N/A test_expired_outdated N/A N/A self N/A N/A N/A Check the expired method return true for an outdated token. N/A N/A N/A self settings EXPIRING_TOKEN_LIFESPAN N/A timedelta milliseconds 1 N/A N/A N/A sleep 0.001 N/A N/A N/A self assertTrue N/A N/A N/A self token expired N/A N/A