#NEWLINE# @ mock . patch ( 'olympia.devhub.views.auto_sign_version' ) #NEWLINE# def test_addon_does_not_exist( self , sign_version ) : #NEWLINE# #INDENT# guid = '@create-version' #NEWLINE# qs = Addon . unfiltered . filter ( guid = guid ) #NEWLINE# assert ( not qs . exists ( ) ) #NEWLINE# response = self . put ( addon = guid , version = '1.0' ) #NEWLINE# assert ( response . status_code == 201 ) #NEWLINE# assert qs . exists ( ) #NEWLINE# addon = qs . get ( ) #NEWLINE# assert addon . has_author ( self . user ) #NEWLINE# assert ( not addon . is_listed ) #NEWLINE# assert ( addon . status == amo . STATUS_LITE ) #NEWLINE# sign_version . assert_called_with ( addon . latest_version , is_beta = False )