anchor.diff:          "couchdb_peruser test",
           {
               setup,
  -            fun start_couch/0, fun stop_couch/1,
  +            fun setup_all/0, fun teardown_all/1,
               {
                   foreach,
                   fun setup/0, fun teardown/1,
  
positive.code:     do_request(delete, get_base_url() ++ "/" ++ ?b2l(TestAuthDb)),
      lists:foreach(fun (DbName) ->
          delete_db(DbName)
      end, all_dbs()),
      config:delete("admins", ?ADMIN_USERNAME).
  
  set_config(Section, Key, Value) ->
      Url = lists:concat([
  
negative.code: -define(ADMIN_USERNAME, "admin").
  -define(ADMIN_PASSWORD, "secret").
  
  setup_all() ->
      TestCtx = test_util:start_couch([chttpd]),
      config:set("admins", ?ADMIN_USERNAME, ?ADMIN_PASSWORD),
      TestCtx.
  
  teardown_all(TestCtx) ->
      config:delete("admins", ?ADMIN_USERNAME),
      test_util:stop_couch(TestCtx).
  
  setup() ->
      TestAuthDb = ?tempdb(),
      do_request(put, get_base_url() ++ "/" ++ ?b2l(TestAuthDb)),
      set_config("couch_httpd_auth", "authentication_db", ?b2l(TestAuthDb)),
      set_config("couchdb_peruser", "enable", "true"),
  