          'abc': 'abc'
      }
      field = serializers.CharField()
  
  
  class TestEmailField(FieldValues):
      """
      Valid and invalid values for `EmailField`.
 
</s> remove         return six.text_type(value)
 </s> add         representation = six.text_type(value)

        if self.trim_whitespace:
            return representation.strip()

        return representation </s> remove         return six.text_type(data)
 </s> add         value = six.text_type(data)

        if self.trim_whitespace:
            return value.strip()

        return value
    def test_trim_whitespace_default(self):
        field = serializers.CharField()
        assert field.to_representation(' abc ') == 'abc'

    def test_trim_whitespace_disabled(self):
        field = serializers.CharField(trim_whitespace=False)
        assert field.to_representation(' abc ') == ' abc '

          'abc': 'abc'
      }
      field = serializers.CharField()
  
    def test_trim_whitespace_default(self):
        field = serializers.CharField()
        assert field.to_representation(' abc ') == 'abc'

    def test_trim_whitespace_disabled(self):
        field = serializers.CharField(trim_whitespace=False)
        assert field.to_representation(' abc ') == ' abc '

  
  class TestEmailField(FieldValues):
      """
      Valid and invalid values for `EmailField`.
keep keep keep add keep keep keep keep
 Add trim_whitespace to CharField #2517

If set to `True` then leading and trailing
whitespace is trimmed. Defaults to `True`. 
tests/test_fields.py