@given(u'a file named "{filename}" with')
def step_a_file_named_filename_with(context, filename):
 step_a_file_named_filename_and_encoding_with(context, filename, 'UTF-8')
 if filename.endswith('.feature'):
  command_util.ensure_context_attribute_exists(context, 'features', [])
  context.features.append(filename)

@ given ( u'a file named "{filename}" with' ) def step_a_file_named_filename_with ( context , filename ) : step_a_file_named_filename_and_encoding_with ( context , filename , 'UTF-8' ) if filename . endswith ( '.feature' ) : command_util . ensure_context_attribute_exists ( context , 'features' , [ ] ) context . features . append ( filename )
creates a textual file with the content provided as docstring .