def test_operator_export():
 export_string = TPOTSelectKBest().export(5)
 assert (export_string == 'SelectKBest(k=5, score_func=f_classif)')

def test_operator_export ( ) : export_string = TPOTSelectKBest ( ) . export ( 5 ) assert ( export_string == 'SelectKBest(k=5, score_func=f_classif)' )
assert that a tpot operator can export properly with a function as a parameter to a classifier .