def assert_dict_equals(self, expected, actual):
        expected_keys = set(expected.keys())
        actual_keys = set(actual.keys())
        self.assertEqual(len(expected_keys), len(actual_keys))
        self.assertEqual(0, len(actual_keys - expected_keys))
        for key in expected:
            self.assertEqual(expected[key], actual[key])
dataset/ETHPy150Open apache/libcloud/libcloud/test/loadbalancer/test_slb.py/AssertDictMixin.assert_dict_equals/swapped operands of `-`