@given(u'a new working directory')
def step_a_new_working_directory(context):
 command_util.ensure_context_attribute_exists(context, 'workdir', None)
 command_util.ensure_workdir_exists(context)
 shutil.rmtree(context.workdir, ignore_errors=True)
 command_util.ensure_workdir_exists(context)

@ given ( u'a new working directory' ) def step_a_new_working_directory ( context ) : command_util . ensure_context_attribute_exists ( context , 'workdir' , None ) command_util . ensure_workdir_exists ( context ) shutil . rmtree ( context . workdir , ignore_errors = True ) command_util . ensure_workdir_exists ( context )
creates a new .