def s3bucket_set_keys_bucket(context, b): step = u""" Given I set the contents of key "{}" in bucket "{}" to "{}" """ for row in context.table: context.execute_steps(step.format(row['key'], b, row['content']))
def s3bucket_keys_bucket(context, bucket): step = u""" Given the key "{}" exists in the bucket "{}" """ for row in context.table: context.execute_steps(step.format(row['key'], bucket))