#NEWLINE# def test_multi_filter_is_and( self ) : #NEWLINE# #INDENT# q1 = QuestionFactory ( metadata = { #NEWLINE# #INDENT# 'os' : 'Linux' , #NEWLINE# 'category' : 'troubleshooting' , #NEWLINE# #UNINDENT# } ) #NEWLINE# QuestionFactory ( metadata = { #NEWLINE# #INDENT# 'os' : 'OSX' , #NEWLINE# 'category' : 'troubleshooting' , #NEWLINE# #UNINDENT# } ) #NEWLINE# res = self . filter ( { #NEWLINE# #INDENT# 'os' : 'Linux' , #NEWLINE# 'category' : 'troubleshooting' , #NEWLINE# #UNINDENT# } ) #NEWLINE# eq_ ( list ( self ) , [ q1 ] )