def test_fit():
 tpot_obj = TPOTClassifier(random_state=42, population_size=1, generations=1, verbosity=0)
 tpot_obj.fit(training_features, training_classes)
 assert isinstance(tpot_obj._optimized_pipeline, creator.Individual)
 assert (tpot_obj._gp_generation == 0)
 assert (not (tpot_obj._start_datetime is None))

def test_fit ( ) : tpot_obj = TPOTClassifier ( random_state = 42 , population_size = 1 , generations = 1 , verbosity = 0 ) tpot_obj . fit ( training_features , training_classes ) assert isinstance ( tpot_obj . _optimized_pipeline , creator . Individual ) assert ( tpot_obj . _gp_generation == 0 ) assert ( not ( tpot_obj . _start_datetime is None ) )
assert that the tpot fit function provides an optimized pipeline .