#NEWLINE# def test_get_alternative( self ) : #NEWLINE# #INDENT# client = Client ( 10 , redis = self . redis ) #NEWLINE# exp = Experiment . find_or_create ( 'archived-control' , [ 'w' , 'l' ] , redis = self . redis ) #NEWLINE# exp . archive ( ) #NEWLINE# alt = exp . get_alternative ( client ) #NEWLINE# self . assertEqual ( alt . name , 'w' ) #NEWLINE# exp . unarchive ( ) #NEWLINE# selected_for_client = exp . get_alternative ( client ) #NEWLINE# self . assertIn ( selected_for_client . name , [ 'w' , 'l' ] )