#NEWLINE# def test_custom_expiry_seconds( self ) : #NEWLINE# #INDENT# modification = timezone . now ( ) #NEWLINE# self . context . set_expiry ( 10 ) #NEWLINE# date = self . context . get_expiry_date ( modification = age ) #NEWLINE# self . assertEqual ( date , ( modification + timedelta ( seconds = 10 ) ) ) #NEWLINE# age = self . context . get_expiry_age ( modification = modification ) #NEWLINE# self . assertEqual ( age , 10 )