  
  
  class Comment(object):
      def __init__(self, email, content, created):
          self.email = email
          self.content = content
          self.created = created or datetime.datetime.now()
  
 
</s> remove 
 </s> add     sub_comment = serializers.Field(source='get_sub_comment.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             'created': None
 </s> add             'created': None,
            'sub_comment': ''
class SubComment(object):
    def __init__(self, sub_comment):
        self.sub_comment = sub_comment
            

  
  
class SubComment(object):
    def __init__(self, sub_comment):
        self.sub_comment = sub_comment
            

  class Comment(object):
      def __init__(self, email, content, created):
          self.email = email
          self.content = content
          self.created = created or datetime.datetime.now()
  
keep add keep keep keep keep keep keep
 Added tests for dotted notation in serializer field source 
rest_framework/tests/serializer.py