anchor.diff:  -module(escalus_ejabberd).
   
   -behaviour(escalus_user_db).
  +
   %% escalus_user_db callbacks
   -export([start/1,
            stop/1,
  -         create_users/1,
            create_users/2,
  -         delete_users/1,
            delete_users/2]).
   
   -export([rpc/3,
  
positive.code:     group_leader(rpc(erlang, whereis, [user]), self()),
      io:format(Format, Args),
      group_leader(whereis(user), self()).
  
  
  -spec get_global_option(term()) -> term().
  get_global_option(Option) ->
  
negative.code:     end,
      proplists:delete({saved, Option}, Config).
  
  %%--------------------------------------------------------------------
  %% escalus_user_db callbacks
  %%--------------------------------------------------------------------
  
  start(_) -> ok.
  stop(_) -> ok.
  
  -spec create_users(escalus:config(), escalus_users:who()) -> escalus:config().
  create_users(Config, Who) ->
      Users = escalus_users:get_users(Who),
      lists:foreach(fun({_Name, UserSpec}) ->
                            register_user(Config, UserSpec)
                    end, Users),
      lists:keystore(escalus_users, 1, Config, {escalus_users, Users}).
  
  -spec delete_users(escalus:config(), escalus_users:who()) -> escalus:config().
  delete_users(Config, Who) when is_atom(Who); is_tuple(Who) ->
      Users = escalus_users:get_users(Who),
      lists:foreach(fun({_Name, UserSpec}) ->
                            unregister_user(Config, UserSpec)
                    end, Users),
      Config.
  
  %%--------------------------------------------------------------------
  %% Helpers
  