#NEWLINE# def test_regular_fields( self ) : #NEWLINE# #INDENT# '\n        Model fields should map to their equivelent serializer fields.\n        ' #NEWLINE# class TestSerializer ( serializers . ModelSerializer ) : #NEWLINE# #INDENT# class Meta ( ) : #NEWLINE# #INDENT# model = RegularFieldsModel #NEWLINE# #UNINDENT# #UNINDENT# expected = dedent ( "\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                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        " ) #NEWLINE# self . assertEqual ( unicode_repr ( TestSerializer ( ) ) , self )