def test_export():
 tpot_obj = TPOTClassifier()
 try:
  tpot_obj.export('test_export.py')
  assert False
 except ValueError:
  pass

def test_export ( ) : tpot_obj = TPOTClassifier ( ) try : tpot_obj . export ( 'test_export.py' ) assert False except ValueError : pass
assert that tpots export function throws a valueerror when no optimized pipeline exists .