          assert field.to_representation(Decimal('1.1')) == '1,1'
  
      def test_localize_forces_coerce_to_string(self):
          field = serializers.DecimalField(max_digits=2, decimal_places=1, coerce_to_string=False, localize=True)
          assert isinstance(field.to_representation(Decimal('1.1')), six.string_types)
  
  
  class TestQuantizedValueForDecimal(TestCase):
      def test_int_quantized_value_for_decimal(self):
          field = serializers.DecimalField(max_digits=4, decimal_places=2)
 
</s> remove         assert output is 123
 </s> add         assert output == 123 </s> remove         assert serializer['amount'].value is 123
 </s> add         assert serializer['amount'].value == 123 </s> remove             field.run_validation(u'slug-99-\u0420')
 </s> add             field.run_validation('slug-99-\u0420') </s> remove         assert isinstance(key, six.string_types)
 </s> add         assert isinstance(key, str) </s> remove         assert response.content == six.b('')
 </s> add         assert response.content == b''
        assert isinstance(field.to_representation(Decimal('1.1')), str)
          assert field.to_representation(Decimal('1.1')) == '1,1'
  
      def test_localize_forces_coerce_to_string(self):
          field = serializers.DecimalField(max_digits=2, decimal_places=1, coerce_to_string=False, localize=True)
        assert isinstance(field.to_representation(Decimal('1.1')), str)
  
  
  class TestQuantizedValueForDecimal(TestCase):
      def test_int_quantized_value_for_decimal(self):
          field = serializers.DecimalField(max_digits=4, decimal_places=2)
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