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