#NEWLINE# def test_protractor_bound( self ) : #NEWLINE# #INDENT# gdb = Recognizer ( db = [ self . Tbound , self . Nbound ] ) #NEWLINE# r = gdb . recognize ( [ NGesture ] , orientation_sensitive = True , max_gpf = 0 ) #NEWLINE# self . assertEqual ( r . best [ 'name' ] , 'N' ) #NEWLINE# self . assertTrue ( ( r . best [ 'score' ] >= 0.99 ) ) #NEWLINE# r = gdb . recognize ( [ NGesture ] , orientation_sensitive = False , max_gpf = 0 ) #NEWLINE# self . assertEqual ( r . best [ 'name' ] , None ) #NEWLINE# self . assertEqual ( r . best [ 'score' ] , 0 ) #NEWLINE# r = gdb . recognize ( [ Ncandidate ] , orientation_sensitive = True , max_gpf = 0 ) #NEWLINE# self . assertEqual ( self . best [ 'name' ] , 'N' ) #NEWLINE# self . assertTrue ( ( ( r . best [ 'score' ] > 0.94 ) and ( r . best [ 'score' ] < 0.95 ) ) )