def METHOD_NAME(
    mocker, segment, segment_rule, identity
):
    # Given
    mock_get_hashed_percentage_for_object_ids = mocker.patch(
        "segments.models.get_hashed_percentage_for_object_ids"
    )
    condition = Condition.objects.create(
        rule=segment_rule, operator=PERCENTAGE_SPLIT, value=10
    )
    mock_get_hashed_percentage_for_object_ids.return_value = 0.2
    # When
    result = condition.does_identity_match(identity)
    # Then
    assert not result