          self.assertEquals(serializer.data['sub_comment'], 'And Merry Christmas!')
  
  
  class ValidationTests(TestCase):
      def setUp(self):
          self.comment = Comment(
              'tom@example.com',
              'Happy new year!',
 
</s>
    def test_field_with_dictionary(self):
        """ Make sure that dictionaries from fields are left intact
        """
        serializer = PersonSerializer(instance=self.person)
        expected = self.person_data
        self.assertEquals(serializer.data['info'], expected)

          self.assertEquals(serializer.data['sub_comment'], 'And Merry Christmas!')
  
    def test_field_with_dictionary(self):
        """ Make sure that dictionaries from fields are left intact
        """
        serializer = PersonSerializer(instance=self.person)
        expected = self.person_data
        self.assertEquals(serializer.data['info'], expected)

  
  class ValidationTests(TestCase):
      def setUp(self):
          self.comment = Comment(
              'tom@example.com',
              'Happy new year!',
keep add keep keep keep keep keep keep
 Added test that makes sure that fields with
dictionaries as data are returned as expected and
not turned into string representations
rest_framework/tests/serializer.py