#NEWLINE# def test_filter( self ) : #NEWLINE# #INDENT# f = ( lambda x : ( x > 0 ) ) #NEWLINE# l = [ 0 , ( - 1 ) , 5 , 10 ] #NEWLINE# expect = [ 5 , 10 ] #NEWLINE# s = seq ( l ) #NEWLINE# result = s . filter ( f ) #NEWLINE# self . assertIteratorEqual ( expect , result ) #NEWLINE# self . assert_type ( self )