def METHOD_NAME(security_spec, resource, operation, expected_combinations):
    op = security_spec.resources[resource].operations[operation]
    assert set(map(tuple, op.acceptable_security_definition_combinations)) == set(expected_combinations)