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

def test_extra_field_kwargs(self):

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