#NEWLINE# def test_numstrokes_filter( self ) : #NEWLINE# #INDENT# gdb = Recognizer ( db = [ self . Ninvar , self . Nbound ] ) #NEWLINE# n = gdb . filter ( numstrokes = 2 ) #NEWLINE# self . assertEqual ( len ( n ) , 0 ) #NEWLINE# gdb . add_gesture ( 'T' , [ TGesture , TGesture ] ) #NEWLINE# n = gdb . filter ( numstrokes = 2 ) #NEWLINE# self . assertEqual ( len ( n ) , 1 ) #NEWLINE# n = gdb . filter ( numstrokes = [ 1 , 2 ] ) #NEWLINE# self . assertEqual ( len ( n ) , 3 )