          self.assertEquals(serializer.is_valid(), True)
          self.assertEquals(serializer.object, expected)
          self.assertTrue(serializer.object is expected)
  
  
  class ValidationTests(TestCase):
      def setUp(self):
          self.comment = Comment(
              'tom@example.com',
 
</s> remove         serializer = CommentSerializer(instance=self.comment)
        expected = self.data
        self.assertEquals(serializer.data, expected)
 </s> add         serializer = CommentSerializer(instance=self.comment)        
        self.assertEquals(serializer.data, self.expected) </s> remove             'created': datetime.datetime(2012, 1, 1)
 </s> add             'created': datetime.datetime(2012, 1, 1),
            'sub_comment': 'This wont change'
        }
        self.expected = {
            'email': 'tom@example.com',
            'content': 'Happy new year!',
            'created': datetime.datetime(2012, 1, 1),
            'sub_comment': 'And Merry Christmas!' </s> remove 
 </s> add     sub_comment = serializers.Field(source='get_sub_comment.sub_comment')
    
        self.assertEquals(serializer.data['sub_comment'], 'And Merry Christmas!')
          self.assertEquals(serializer.is_valid(), True)
          self.assertEquals(serializer.object, expected)
          self.assertTrue(serializer.object is expected)
        self.assertEquals(serializer.data['sub_comment'], 'And Merry Christmas!')
  
  
  class ValidationTests(TestCase):
      def setUp(self):
          self.comment = Comment(
              'tom@example.com',
keep keep add keep keep keep keep keep keep
 Added tests for dotted notation in serializer field source 
rest_framework/tests/serializer.py