          )
          self.data = {
              'email': 'tom@example.com',
              'content': 'Happy new year!',
              'created': datetime.datetime(2012, 1, 1)
          }
  
      def test_empty(self):
          serializer = CommentSerializer()
          expected = {
 
</s> remove             'created': None
 </s> add             'created': None,
            'sub_comment': '' </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 
 </s> add     sub_comment = serializers.Field(source='get_sub_comment.sub_comment')
    
            '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!'
          )
          self.data = {
              'email': 'tom@example.com',
              'content': 'Happy new year!',
            '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!'
          }
  
      def test_empty(self):
          serializer = CommentSerializer()
          expected = {
keep keep keep keep replace keep keep keep keep keep
 Added tests for dotted notation in serializer field source 
rest_framework/tests/serializer.py