#NEWLINE# def test_responded( self ) : #NEWLINE# #INDENT# 'Verify the responded queryset.' #NEWLINE# q = QuestionFactory ( ) #NEWLINE# eq_ ( 0 , Question . objects . responded ( ) . count ( ) ) #NEWLINE# a = AnswerFactory ( question = q ) #NEWLINE# eq_ ( 1 , Question . objects . responded ( ) . count ( ) ) #NEWLINE# a = AnswerFactory ( creator = q . creator , question = a ) #NEWLINE# eq_ ( 0 , Question . objects . responded ( ) . count ( ) ) #NEWLINE# a = AnswerFactory ( question = q ) #NEWLINE# eq_ ( 1 , Question . objects . responded ( ) . count ( ) ) #NEWLINE# q . is_locked = True #NEWLINE# q . save ( ) #NEWLINE# eq_ ( 0 , Question . objects . responded ( ) . count ( ) ) #NEWLINE# q . is_locked = False #NEWLINE# q . solution = a #NEWLINE# q . save ( ) #NEWLINE# eq_ ( 0 , Question . objects . responded ( ) . count ( ) )