def METHOD_NAME(self, method):
    """
    Setup state per test.
    :param method:
    :return:
    """
    self.rpc_client = RPCClient(user="user", password="password", url="https://somewhere")
    self.rpc_client.conn.auth.login = MagicMock(return_value="My_token")
    self.rpc_client.conn = MagicMock()