#NEWLINE# def test_content_length( 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 . assertTrue ( response . has_header ( 'content-length' ) ) #NEWLINE# self . assertTrue ( response [ 'content-length' ] . isdigit ( ) ) #NEWLINE# self . assertTrue ( int ( response [ 'content-length' ] ) )