#NEWLINE# def test_invalid_data_string_instead_of_integer( self ) : #NEWLINE# #INDENT# response = self . client . post ( reverse ( 'item-manage-speaker' , args = [ self . item . pk ] ) , { #NEWLINE# #INDENT# 'user' : 'string_instead_of_integer' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , 400 )