@step('I create log records with')
def step_I_create_logrecords_with_table(context):
 assert context.table, 'REQUIRE: context.table'
 context.table.require_columns(['category', 'level', 'message'])
 for row in context.table.rows:
  category = row['category']
  if (category == '__ROOT__'):
   category = None
  level = LogLevel.parse_type(row['level'])
  message = row['message']
  make_log_record(category, level, message)

@ step ( 'I create log records with' ) def step_I_create_logrecords_with_table ( context ) : assert context . table , 'REQUIRE: context.table' context . table . require_columns ( [ 'category' , 'level' , 'message' ] ) for row in context . table . rows : category = row [ 'category' ] if ( category == '__ROOT__' ) : category = None level = LogLevel . parse_type ( row [ 'level' ] ) message = row [ 'message' ] make_log_record ( category , level , message )
step definition that creates one more log records by using a table .