#NEWLINE# def test_ops( self ) : #NEWLINE# #INDENT# from bokeh.core.query import EQ , LEQ , GEQ , LT , GT , NEQ #NEWLINE# res = list ( query . find ( self . plot . references ( ) , { #NEWLINE# #INDENT# 'size' : { #NEWLINE# #INDENT# EQ : 5 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( len ( res ) , 1 ) #NEWLINE# res = list ( query . find ( self . plot . references ( ) , { #NEWLINE# #INDENT# 'size' : { #NEWLINE# #INDENT# NEQ : 5 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( len ( res ) , 0 ) #NEWLINE# res = list ( query . find ( self . plot . references ( ) , { #NEWLINE# #INDENT# 'size' : { #NEWLINE# #INDENT# GEQ : 5 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( len ( res ) , 1 ) #NEWLINE# res = list ( query . find ( self . plot . references ( ) , { #NEWLINE# #INDENT# 'size' : { #NEWLINE# #INDENT# LEQ : 5 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( len ( res ) , 1 ) #NEWLINE# res = list ( query . find ( self . plot . references ( ) , { #NEWLINE# #INDENT# 'size' : { #NEWLINE# #INDENT# GT : 5 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( len ( res ) , 0 ) #NEWLINE# res = list ( query . find ( self . plot . references ( ) , { #NEWLINE# #INDENT# 'size' : { #NEWLINE# #INDENT# LT : 5 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( len ( res ) , 0 )