- given: "an installed obnam"
  function: install_obnam
  cleanup: uninstall_obnam

- given: "a client config based on {filename}"
  function: configure_client

- when: "I invoke obnam --config {filename} config"
  function: run_obnam_config

- when: "I invoke obnam --config {filename} restore <{genid}> {todir}"
  function: run_obnam_restore

- when: "I invoke obnam --config {filename} restore latest {todir}"
  function: run_obnam_restore_latest

- when: "I invoke obnam --config {filename} get-chunk <{gen_id}>"
  function: run_obnam_get_chunk

- then: "backup generation is {varname}"
  function: capture_generation_id

- then: "generation list contains <{gen_id}>"
  function: generation_list_contains

- then: "file {filename} was backed up because it was new"
  function: file_was_new

- then: "file {filename} was backed up because it was changed"
  function: file_was_changed

- then: "file {filename} was not backed up because it was unchanged"
  function: file_was_unchanged

- then: "stdout matches file {filename}"
  function: stdout_matches_file
