#NEWLINE# def test_preview_existing( self ) : #NEWLINE# #INDENT# 'Preview content for a scribble which exists. See #34.' #NEWLINE# data = self . get_valid_data ( ) #NEWLINE# scribble = self . create_scribble ( ** 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# self . assertFalse ( ( 'error' in results ) )