          If `default` is set, then omitted values get the default input.
          """
          field = serializers.IntegerField(default=123)
          output = field.run_validation()
          assert output is 123
  
  
  class TestSource:
      def test_source(self):
          class ExampleSerializer(serializers.Serializer):
 
</s> remove         assert serializer['amount'].value is 123
 </s> add         assert serializer['amount'].value == 123 </s> remove         assert serializer['amount'].value is 123
 </s> add         assert serializer['amount'].value == 123 </s> remove         self.out = six.StringIO()
 </s> add         self.out = io.StringIO() </s> remove     @pytest.mark.skipif(six.PY2, reason='PyYAML unicode output is malformed on PY2.')
 </s> add  </s> remove         if isinstance(ordering, six.string_types):
 </s> add         if isinstance(ordering, str):
        assert output == 123
          If `default` is set, then omitted values get the default input.
          """
          field = serializers.IntegerField(default=123)
          output = field.run_validation()
        assert output == 123
  
  
  class TestSource:
      def test_source(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_fields.py