#NEWLINE# def test_with_votes( self ) : #NEWLINE# #INDENT# QuestionVoteFactory ( question = self . question ) #NEWLINE# QuestionVoteFactory ( question = self . question ) #NEWLINE# QuestionVoteFactory ( ) #NEWLINE# serializer = api . QuestionSerializer ( instance = self . question ) #NEWLINE# eq_ ( serializer . data [ 'num_votes' ] , 2 )