#NEWLINE# def test_context( self ) : #NEWLINE# #INDENT# r = self . client . get ( reverse ( 'devhub.validate_addon' ) ) #NEWLINE# assert ( r . status_code == 200 ) #NEWLINE# doc = pq ( r . content ) #NEWLINE# assert ( doc ( '#upload-addon' ) . attr ( 'data-upload-url' ) == reverse ( 'devhub.standalone_upload' ) ) #NEWLINE# assert ( doc ( '#upload-addon' ) . attr ( 'data-upload-url-listed' ) == reverse ( 'devhub.standalone_upload' ) ) #NEWLINE# assert ( doc ( '#upload-addon' ) . attr ( 'data-upload-url-unlisted' ) == reverse ( 'devhub.standalone_upload_unlisted' ) )