#NEWLINE# def test_patch_workflow( self ) : #NEWLINE# #INDENT# '\n        Tests to only update the workflow of a motion.\n        ' #NEWLINE# response = self . client . patch ( reverse ( 'motion-detail' , args = [ motion . motion . pk ] ) , { #NEWLINE# #INDENT# 'workflow_id' : '2' , #NEWLINE# #UNINDENT# } ) #NEWLINE# motion = Motion . objects . get ( ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# self . assertEqual ( motion . title , 'test_title_aeng7ahChie3waiR8xoh' ) #NEWLINE# self . assertEqual ( motion . workflow , 2 )