#NEWLINE# @ mock . patch ( 'olympia.devhub.tasks.validate' ) #NEWLINE# def test_json_results_post_cached( self , validate ) : #NEWLINE# #INDENT# assert self . file . has_been_validated #NEWLINE# assert ( self . client . post ( self . json_url ) . status_code == 200 ) #NEWLINE# assert ( not validate . called )