'Ensure `extra_kwargs` are passed to generated fields.'

def test_extra_field_kwargs_required(self):

    class TestSerializer(serializers.ModelSerializer, ):
        class Meta:
            model = RegularFieldsModel
            fields = (u'auto_field', u'char_field')
            extra_kwargs = {u'auto_field': {u'required': False, u'read_only': False}}
    expected = dedent(u'\n                                                TestSerializer():\n                                                                auto_field    =    IntegerField(read_only=False,    required=False)\n                                                                char_field    =    CharField(max_length=100)\n                                ')
    self.assertEqual(repr(TestSerializer()), expected)
