#NEWLINE# @ mock . patch ( 'validator.validate.validate' ) #NEWLINE# def test_upload_listed_addon( self , validate_mock ) : #NEWLINE# #INDENT# 'Listed addons are not validated as "self-hosted" addons.' #NEWLINE# validate_mock . return_value = json . dumps ( amo . VALIDATOR_SKELETON_RESULTS ) #NEWLINE# self . url = reverse ( 'devhub.upload' ) #NEWLINE# data = open ( get_image_path ( 'animated.png' ) , 'rb' ) #NEWLINE# self . client . post ( data . url , { #NEWLINE# #INDENT# 'upload' : data , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert validate_mock . call_args [ 1 ] [ 'listed' ] #NEWLINE# assert ( FileUpload . objects . get ( ) . automated_signing is False )