def METHOD_NAME(self, group_number, in_holdback):
    with patch('openedx.features.discounts.applicability.stable_bucketing_hash_group', return_value=group_number):
        assert _is_in_holdback_and_bucket(self.user) == in_holdback