#NEWLINE# def test_finished_dont_clear_out_the_users_session_if_reset_is_false( self ) : #NEWLINE# #INDENT# Experiment . find_or_create ( self . redis , 'link_color' , 'blue' , 'red' ) #NEWLINE# alternative_name = ab_test ( 'link_color' , 'blue' , 'red' ) #NEWLINE# assert ( session [ 'split' ] == { #NEWLINE# #INDENT# 'link_color' : alternative_name , #NEWLINE# #UNINDENT# } ) #NEWLINE# finished ( 'link_color' , reset = False ) #NEWLINE# assert ( session [ 'split' ] == { #NEWLINE# #INDENT# 'link_color' : alternative_name , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( session [ 'split_finished' ] == [ 'link_color' ] )