def test_choices(self):
        f = serializers.ChoiceField(choices=self.CHOICES)
        value = self.CHOICES[0][0]
        try:
            f.to_internal_value(value)
        except serializers.ValidationError:
            self.fail("Value %s does not validate" % str(value))
Test event has been processed, save the achieved state.
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_validation.py/TestChoiceFieldChoicesValidate.test_choices--crossover with--dataset/ETHPy150Open circuits/circuits/tests/core/test_complete.py/App.test_success