def assert_equal_dict(expected, actual):
    assert_equal_set(
        expected = set(expected.keys()),
        actual = set(actual.keys())
    )    
    for key in expected.iterkeys():
        try:
            assert_equal(expected[key], actual[key])
        except __HOLE__, assertion_error:
            raise AssertionError(
                "[%s] %s" % (
                    key,
                    str(assertion_error),
                )
            )
dataset/ETHPy150Open sahana/eden/modules/test_utils/assert_equal.py/assert_equal_dict