def replace_all(text, replace_dict):
    """
    Replace multiple strings in a text.


    .. note::

        Replacements are made successively, without any warranty on the order         in which they are made.

    :param text: Text to replace in.
    :param replace_dict: Dictionary mapping strings to replace with their             substitution.
    :returns: Text after replacements.

    >>> replace_all("foo bar foo thing", {"foo": "oof", "bar": "rab"})
    'oof rab oof thing'
    """
    for i, j in replace_dict.items():
        text = text.replace(i, j)
    return text
