          }
          self.assertEquals(serializer.data, expected)
  
      def test_retrieve(self):
          serializer = CommentSerializer(instance=self.comment)
          expected = self.data
          self.assertEquals(serializer.data, expected)
  
      def test_create(self):
          serializer = CommentSerializer(self.data)
          expected = self.comment
          self.assertEquals(serializer.is_valid(), True)
 
</s> remove             'created': None
 </s> add             'created': None,
            'sub_comment': '' </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!'
        serializer = CommentSerializer(instance=self.comment)        
        self.assertEquals(serializer.data, self.expected)
          }
          self.assertEquals(serializer.data, expected)
  
      def test_retrieve(self):
        serializer = CommentSerializer(instance=self.comment)        
        self.assertEquals(serializer.data, self.expected)
        serializer = CommentSerializer(instance=self.comment)        
        self.assertEquals(serializer.data, self.expected)
        serializer = CommentSerializer(instance=self.comment)        
        self.assertEquals(serializer.data, self.expected)
  
      def test_create(self):
          serializer = CommentSerializer(self.data)
          expected = self.comment
          self.assertEquals(serializer.is_valid(), True)
keep keep keep keep replace replace replace keep keep keep keep keep
 Added tests for dotted notation in serializer field source 
rest_framework/tests/serializer.py