#NEWLINE# def test_post_create( self ) : #NEWLINE# #INDENT# data = self . make_an_appointment_dict ( '2011-02-03' , '60' , '120' ) #NEWLINE# with self . client : #NEWLINE# #INDENT# resp = self . client . post ( '/appointment/create' , data = data , follow_redirects = True ) #NEWLINE# self . assertEqual ( resp . status_code , 200 ) #NEWLINE# self . assertTrue ( ( 'Thank' in resp . data ) ) #NEWLINE# self . assertEqual ( session [ 'name' ] , data [ 'name' ] ) #NEWLINE# self . assertEqual ( session [ 'email' ] , data [ 'email' ] )