def print_undefined_step_snippets(undefined_steps, stream=None, colored=True):
 if (not undefined_steps):
  return
 if (not stream):
  stream = sys.stderr
 msg = u'\nYou can implement step definitions for undefined steps with '
 msg += u'these snippets:\n\n'
 printed = set()
 for step in undefined_steps:
  if (step in printed):
   continue
  printed.add(step)
  msg += make_undefined_step_snippet(step)
 if colored:
  from behave.formatter.ansi_escapes import escapes
  msg = ((escapes['undefined'] + msg) + escapes['reset'])
 stream.write(msg)
 stream.flush()

def print_undefined_step_snippets ( undefined_steps , stream = None , colored = True ) : if ( not undefined_steps ) : return if ( not stream ) : stream = sys . stderr msg = u'\nYou can implement step definitions for undefined steps with ' msg += u'these snippets:\n\n' printed = set ( ) for step in undefined_steps : if ( step in printed ) : continue printed . add ( step ) msg += make_undefined_step_snippet ( step ) if colored : from behave . formatter . ansi_escapes import escapes msg = ( ( escapes [ 'undefined' ] + msg ) + escapes [ 'reset' ] ) stream . write ( msg ) stream . flush ( )
print snippets for the undefined steps that were discovered .