#NEWLINE# def test_filter_is_taken_false( self ) : #NEWLINE# #INDENT# q1 = QuestionFactory ( ) #NEWLINE# q2 = QuestionFactory ( ) #NEWLINE# q2 . take ( q1 . creator ) #NEWLINE# url = ( reverse ( 'question-list' ) + '?is_taken=0' ) #NEWLINE# res = self . client . get ( url ) #NEWLINE# eq_ ( res . status_code , 200 ) #NEWLINE# eq_ ( self . data [ 'count' ] , 1 ) #NEWLINE# eq_ ( res . data [ 'results' ] [ 0 ] [ 'id' ] , q1 . id )