import difflib


def diff(old, new):
    """
    Helper function. Returns a string containing the unified diff of two multiline strings.
    """
    old=old.splitlines(1)
    new=new.splitlines(1)

    diff=difflib.unified_diff(old, new)

    return ''.join(diff)