'Model fields should map to their equivalent serializer fields.'

def test_regular_fields(self):

    class TestSerializer(serializers.ModelSerializer, ):
        class Meta:
            model = RegularFieldsModel
            fields = u'__all__'
    expected = dedent(u"\n                                                TestSerializer():\n                                                                auto_field    =    IntegerField(read_only=True)\n                                                                big_integer_field    =    IntegerField()\n                                                                boolean_field    =    BooleanField(required=False)\n                                                                char_field    =    CharField(max_length=100)\n                                                                comma_separated_integer_field    =    CharField(max_length=100,    validators=[<django.core.validators.RegexValidator    object>])\n                                                                date_field    =    DateField()\n                                                                datetime_field    =    DateTimeField()\n                                                                decimal_field    =    DecimalField(decimal_places=1,    max_digits=3)\n                                                                email_field    =    EmailField(max_length=100)\n                                                                float_field    =    FloatField()\n                                                                integer_field    =    IntegerField()\n                                                                null_boolean_field    =    NullBooleanField(required=False)\n                                                                positive_integer_field    =    IntegerField()\n                                                                positive_small_integer_field    =    IntegerField()\n                                                                slug_field    =    SlugField(max_length=100)\n                                                                small_integer_field    =    IntegerField()\n                                                                text_field    =    CharField(max_length=100,    style={'base_template':    'textarea.html'})\n                                                                file_field    =    FileField(max_length=100)\n                                                                time_field    =    TimeField()\n                                                                url_field    =    URLField(max_length=100)\n                                                                custom_field    =    ModelField(model_field=<tests.test_model_serializer.CustomField:    custom_field>)\n                                                                file_path_field    =    FilePathField(path='/tmp/')\n                                ")
    self.assertEqual(unicode_repr(TestSerializer()), expected)
