#NEWLINE# def test_with_category( self ) : #NEWLINE# #INDENT# category = Category . objects . create ( name = 'test_category_name_CiengahzooH4ohxietha' , prefix = 'TEST_PREFIX_la0eadaewuec3seoxeiN' ) #NEWLINE# response = self . client . post ( reverse ( 'motion-list' ) , { #NEWLINE# #INDENT# 'title' : 'test_title_Air0bahchaiph1ietoo2' , #NEWLINE# 'text' : 'test_text_chaeF9wosh8OowazaiVu' , #NEWLINE# 'category_id' : category . pk , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_201_CREATED ) #NEWLINE# motion = Motion . objects . get ( ) #NEWLINE# self . assertEqual ( motion . category , category ) #NEWLINE# self . assertEqual ( motion . identifier , 'TEST_PREFIX_la0eadaewuec3seoxeiN 1' )