#NEWLINE# def test_version_failed_review( self ) : #NEWLINE# #INDENT# self . create_version ( '3.0' ) #NEWLINE# version = Version . objects . get ( addon__guid = self . guid , version = '3.0' ) #NEWLINE# version . update ( reviewed = datetime . today ( ) ) #NEWLINE# version . files . get ( ) . update ( reviewed = datetime . today ( ) , status = amo . STATUS_DISABLED ) #NEWLINE# response = self . put ( self . url ( self . guid , '3.0' ) ) #NEWLINE# assert ( response . status_code == 409 ) #NEWLINE# assert ( response . data [ 'error' ] == 'Version already exists.' ) #NEWLINE# response = self . get ( self . url ( self . guid , '3.0' ) ) #NEWLINE# assert ( response . status_code == 200 ) #NEWLINE# assert ( 'processed' in response . data )