def test_score():
 tpot_obj = TPOTClassifier()
 try:
  tpot_obj.score(testing_features, testing_classes)
  assert False
 except ValueError:
  pass

def test_score ( ) : tpot_obj = TPOTClassifier ( ) try : tpot_obj . score ( testing_features , testing_classes ) assert False except ValueError : pass
assert that the tpot score function raises a valueerror when no optimized pipeline exists .