def setAction(self, key, value):
        if key not in self.actions:
            raise InvalidBillKeyError('%s is not a valid action key.' % key)
        if not isinstance(value, int):
            raise InvalidBillValueError('%s is not a valid value for key %s.' % (value, key))
        self.actions[key] = value
#24958 - Variant of test_inlineformset_factory_nulls_default_pks for
dataset/ETHPy150Open jookies/jasmin/jasmin/routing/Bills.py/Bill.setAction--crossover with--dataset/ETHPy150Open django/django/tests/model_formsets/test_uuid.py/InlineFormsetTests.test_inlineformset_factory_nulls_default_pks_alternate_key_relation