def test_renamed_fields_are_model_validated(self):
        # We've set `required=False` on the serializer, but the model
        # does not have `blank=True`, so this serializer should not validate.
        serializer = ShouldValidateModelSerializer(data={'renamed': ''})
        self.assertEqual(serializer.is_valid(), False)
        self.assertIn('renamed', serializer.errors)
        self.assertNotIn('should_validate_field', serializer.errors)
Connect and identify to imc network as per the
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_validation.py/TestPreSaveValidationExclusionsSerializer.test_renamed_fields_are_model_validated--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/server/portal/imc2.py/IMC2Bot._imc_login