  
          assert serializer['text'].value == 'x' * 1000
          assert serializer['text'].errors == ['Ensure this field has no more than 100 characters.']
          assert serializer['text'].name == 'text'
          assert serializer['amount'].value is 123
          assert serializer['amount'].errors is None
          assert serializer['amount'].name == 'amount'
  
      def test_delete_field(self):
          class ExampleSerializer(serializers.Serializer):
 
</s> remove         assert serializer['amount'].value is 123
 </s> add         assert serializer['amount'].value == 123 </s> remove         assert output is 123
 </s> add         assert output == 123 </s> remove         request = factory.patch('/{0}'.format(obj.pk), {'number_value': 101}, format='json')
 </s> add         request = factory.patch('/{}'.format(obj.pk), {'number_value': 101}, format='json') </s> remove         assert field.run_validation(1) is 1
 </s> add         assert field.run_validation(1) == 1 </s> remove         assert response.content == six.b('')
 </s> add         assert response.content == b''
        assert serializer['amount'].value == 123
  
          assert serializer['text'].value == 'x' * 1000
          assert serializer['text'].errors == ['Ensure this field has no more than 100 characters.']
          assert serializer['text'].name == 'text'
        assert serializer['amount'].value == 123
          assert serializer['amount'].errors is None
          assert serializer['amount'].name == 'amount'
  
      def test_delete_field(self):
          class ExampleSerializer(serializers.Serializer):
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/test_bound_fields.py