#NEWLINE# def test_expired_captcha_returns_410( self ) : #NEWLINE# #INDENT# for key in [ store . hashkey for store in six . itervalues ( self . stores ) ] : #NEWLINE# #INDENT# response = self . client . get ( reverse ( 'captcha-image' , kwargs = dict ( key = key ) ) ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# CaptchaStore . objects . filter ( hashkey = key ) . delete ( ) #NEWLINE# response = self . client . get ( reverse ( 'captcha-image' , kwargs = dict ( key = key ) ) ) #NEWLINE# self . assertEqual ( response . status_code , 410 )