def diff(label, expected, received):
    if expected == received:
        return ""
    else:
        return (label + "\n"
                + "\n".join(s.encode("string_escape")
                            for s in
                            difflib.unified_diff(expected.split("\n"),
                                                 received.split("\n"),
                                                 "expected", "received",
                                                 lineterm=""))
                + "\n")
A helper method to check for unlimited value.
dataset/ETHPy150Open isislovecruft/obfsproxy/obfsproxy/test/tester.py/diff--crossover with--dataset/ETHPy150Open openstack/nova/nova/quota.py/DbQuotaDriver._is_unlimited_value