def test_set_params_2():
 tpot_obj = TPOTClassifier(generations=2)
 tpot_obj.set_params(generations=3)
 assert (tpot_obj.generations == 3)

def test_set_params_2 ( ) : tpot_obj = TPOTClassifier ( generations = 2 ) tpot_obj . set_params ( generations = 3 ) assert ( tpot_obj . generations == 3 )
assert that set_params updates tpots instance variables .