'Properties and methods on the model should be allowed as `Meta.fields`
values, and should map to `ReadOnlyField`.'

def test_method_field(self):

    class TestSerializer(serializers.ModelSerializer, ):
        class Meta:
            model = RegularFieldsModel
            fields = (u'auto_field', u'method')
    expected = dedent(u'\n                                                TestSerializer():\n                                                                auto_field    =    IntegerField(read_only=True)\n                                                                method    =    ReadOnlyField()\n                                ')
    self.assertEqual(repr(TestSerializer()), expected)
