#NEWLINE# def test_successful_edit( self ) : #NEWLINE# #INDENT# data = self . get_valid_data ( ) #NEWLINE# response = self . client . post ( self . url , data = data ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# results = json . loads ( response . content . decode ( 'utf-8' ) ) #NEWLINE# self . assertTrue ( results [ 'valid' ] ) #NEWLINE# days_log = DaysLog . objects . get ( pk = self . days_log . pk ) #NEWLINE# self . assertEqual ( results . happenings , data [ 'content' ] )