      def setUp(self):
          self.serializer = TimestampedModelSerializer()
  
      def test_humanized(self):
          humanized = humanize_form_fields(Form())
          expected = {
              'field1': {u'help_text': u'',
                         u'label': u'field one',
                         u'max_length': 3,
                         u'required': True,
 
</s> remove             'field1': {u'help_text': u'',
                       u'label': u'field one',
 </s> add             'field1': {u'required': True, </s> remove         self.serializer = TimestampedModelSerializer()
 </s> add         self.serializer = HumanizableSerializer() </s> remove                        u'required': True,
                       u'type': u'String'},
            'field2': {u'help_text': u'',
                       u'label': u'field two',
                       u'required': True,
                       u'type': u'String'}}
        self.assertEqual(humanized, expected)
 </s> add                        u'type': u'CharField',
                       u'read_only': False},
            'field2': {u'required': False,
                       u'max_length': 10,
                       u'type': u'CharField',
                       u'read_only': False}}
        self.assertEqual(set(expected.keys()), set(humanized.keys()))
        for k, v in humanized.iteritems():
            self.assertEqual(v, expected[k]) </s> remove class Form(forms.Form):
    field1 = forms.CharField(max_length=3, label='field one')
    field2 = forms.CharField(label='field two')
 </s> add class HumanizableSerializer(Serializer):
    field1 = CharField(3, required=True)
    field2 = CharField(10, required=False) </s> remove         self.assertEqual(getattr(serializer.fields['url_field'], 'max_length'), 20)


class HumanizedFieldType(TestCase):
    def test_standard_type_classes(self):
        for field_type_name in forms.fields.__all__:
            field_type = getattr(forms.fields, field_type_name)
            humanized = humanize_field_type(field_type)
            self.assert_valid_name(humanized)

    def test_standard_type_names(self):
        for field_type_name in forms.fields.__all__:
            humanized = humanize_field_type(field_type_name)
            self.assert_valid_name(humanized)

    def test_custom_type_name(self):
        humanized = humanize_field_type('SomeCustomType')
        self.assertEquals(humanized, u'Some custom type')

    def test_custom_type(self):
        custom_type = namedtuple('SomeCustomType', [])
        humanized = humanize_field_type(custom_type)
        self.assertEquals(humanized, u'Some custom type')

    def assert_valid_name(self, humanized):
        """A humanized field name is valid if it's a non-empty
        unicode.

        """
        self.assertIsInstance(humanized, unicode)
        self.assertNotEqual(humanized, '')
 </s> add         self.assertEqual(getattr(serializer.fields['url_field'],
                         'max_length'), 20)
        humanized = self.serializer.humanized
      def setUp(self):
          self.serializer = TimestampedModelSerializer()
  
      def test_humanized(self):
        humanized = self.serializer.humanized
          expected = {
              'field1': {u'help_text': u'',
                         u'label': u'field one',
                         u'max_length': 3,
                         u'required': True,
keep keep keep keep replace keep keep keep keep keep
 simplified, moved field humanizing to Field. broken tests 
rest_framework/tests/fields.py