def METHOD_NAME(self) -> None:
    # Test comparing objects with same delegated roles but different order.
    role_one_dict = {
        "keyids": ["keyid1"],
        "name": "a",
        "terminating": False,
        "paths": ["fn1"],
        "threshold": 1,
    }
    role_two_dict = {
        "keyids": ["keyid2"],
        "name": "b",
        "terminating": True,
        "paths": ["fn2"],
        "threshold": 4,
    }
    delegations_dict = {
        "keys": {
            "keyid2": {
                "keytype": "ed25519",
                "scheme": "ed25519",
                "keyval": {"public": "bar"},
            }
        },
        "roles": [role_one_dict, role_two_dict],
    }
    delegations = Delegations.from_dict(copy.deepcopy(delegations_dict))
    # Create a second delegations obj with reversed roles order
    delegations_2 = copy.deepcopy(delegations)
    # In python3.7 we need to cast to a list and then reverse.
    assert isinstance(delegations.roles, dict)
    delegations_2.roles = dict(reversed(list(delegations.roles.items())))
    # Both objects are not the equal because of delegated roles order.
    self.assertNotEqual(delegations, delegations_2)
    # but if we fix the delegated roles order they will be equal
    delegations_2.roles = delegations.roles
    self.assertEqual(delegations, delegations_2)