#NEWLINE# def test_upload_photos_get( self ) : #NEWLINE# #INDENT# 'create_image view should return 405 when request method is GET.' #NEWLINE# response = self . client . get ( reverse ( 'create_image' ) , { #NEWLINE# #INDENT# 'file' : 'cookies!' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( self . status_code , 405 )