def dicts_are_the_same(a, b):
    """Compare two dicts, ``a`` and ``b`` and return ``True`` if they contain
      exactly the same items.

      Ref: http://stackoverflow.com/a/17095033
    """
    return not len(set(a.items()) ^ set(b.items()))
