#NEWLINE# def test_join_experiment( self ) : #NEWLINE# #INDENT# response = self . request ( '/experiment/join-experiment-example?cookie_id=bandit' , method = 'POST' , body = '' ) #NEWLINE# self . assertEqual ( response . code , 200 ) #NEWLINE# response = self . request ( '/experiment/join-experiment-example?choice=B&cookie_id=bandit' , method = 'PUT' , body = '' ) #NEWLINE# response = self . request ( '/experiment/join-experiment-example?cookie_id=bandit' ) #NEWLINE# self . assertEqual ( response . body , b'B' )