import difflib


def diff(actual, expected):
    """
        normalize whitespace in actual and expected and return unified diff
    """
    return '\n'.join(list(
        difflib.unified_diff(actual.splitlines(), expected.splitlines())
    ))