#NEWLINE# def test_or_match( self ) : #NEWLINE# #INDENT# results1 = matchtable . select ( ) . where ( or_ ( matchtable . c . title . match ( 'nutshell' ) , matchtable . c . title . match ( 'ruby' ) ) ) . order_by ( matchtable . c . id ) . execute ( ) . fetchall ( ) #NEWLINE# eq_ ( [ 1 , 3 , 5 ] , [ r . id for r in results1 ] ) #NEWLINE# results2 = matchtable . select ( ) . where ( matchtable . c . title . match ( 'nutshell ruby' ) ) . order_by ( matchtable . c . id ) . execute ( ) . fetchall ( ) #NEWLINE# eq_ ( [ 1 , 3 , 5 ] , [ results2 . id for r in results2 ] )