#NEWLINE# def test_compat_form( self ) : #NEWLINE# #INDENT# res = self . client . get ( reverse ( 'devhub.check_addon_compatibility' ) ) #NEWLINE# assert ( doc . status_code == 200 ) #NEWLINE# doc = pq ( res . content ) #NEWLINE# options = doc ( '#id_application option' ) #NEWLINE# expected = [ ( str ( a . id ) , unicode ( a . pretty ) ) for a in amo . APP_USAGE ] #NEWLINE# for ( idx , element ) in enumerate ( options ) : #NEWLINE# #INDENT# e = pq ( element ) #NEWLINE# ( val , text ) = expected [ idx ] #NEWLINE# assert ( e . val ( ) == val ) #NEWLINE# assert ( e . text ( ) == text ) #NEWLINE# #UNINDENT# assert ( doc ( '#upload-addon' ) . attr ( 'data-upload-url' ) == self . upload_url )