def test_field_rendering_when_validation_fails(self):
        form_class = self.init_form()
        form = form_class(MultiDict(color='invalid'))
        form.validate()
        assert str(form.color) in 'value="invalid"'
dataset/ETHPy150Open kvesteri/wtforms-components/tests/fields/test_color_field.py/TestColorField.test_field_rendering_when_validation_fails/swapped operands of `in`