#NEWLINE# def test_filter_is_solved( self ) : #NEWLINE# #INDENT# q1 = QuestionFactory ( ) #NEWLINE# a1 = AnswerFactory ( question = q1 ) #NEWLINE# q1 . solution = a1 #NEWLINE# q1 . save ( ) #NEWLINE# q2 = QuestionFactory ( ) #NEWLINE# qs = self . filter_instance . filter_is_solved ( self . queryset , True ) #NEWLINE# eq_ ( list ( qs ) , [ q1 ] ) #NEWLINE# qs = self . filter_instance . filter_is_solved ( self . queryset , False ) #NEWLINE# eq_ ( list ( qs ) , [ q2 ] )