#NEWLINE# def test_delete_active_version( self ) : #NEWLINE# #INDENT# response = self . client . delete ( reverse ( 'motion-manage-version' , args = [ self . motion . pk ] ) , { #NEWLINE# #INDENT# 'version_number' : '2' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_400_BAD_REQUEST ) #NEWLINE# self . assertEqual ( self . data , { #NEWLINE# #INDENT# 'detail' : 'You can not delete the active version of a motion.' , #NEWLINE# #UNINDENT# } )