#NEWLINE# def _check_comparison_ops( self , a , b , a_dense , b_dense ) : #NEWLINE# #INDENT# def _check( res ) : #NEWLINE# #INDENT# tm . assertIsInstance ( res , SparseArray ) #NEWLINE# self . assertEqual ( res . dtype , np . bool ) #NEWLINE# self . assertIsInstance ( res . fill_value , bool ) #NEWLINE# #UNINDENT# _check ( ( a == b ) ) #NEWLINE# tm . assert_numpy_array_equal ( ( a == b ) . to_dense ( ) , ( b_dense == b_dense ) ) #NEWLINE# _check ( ( a != b ) ) #NEWLINE# tm . assert_numpy_array_equal ( ( a != b ) . to_dense ( ) , ( a_dense != b_dense ) ) #NEWLINE# _check ( ( a >= b ) ) #NEWLINE# tm . assert_numpy_array_equal ( ( a >= b ) . to_dense ( ) , ( a_dense >= b_dense ) ) #NEWLINE# _check ( ( a <= b ) ) #NEWLINE# tm . assert_numpy_array_equal ( ( a <= b ) . to_dense ( ) , ( a_dense <= b_dense ) ) #NEWLINE# _check ( ( a > b ) ) #NEWLINE# tm . assert_numpy_array_equal ( ( a > b ) . to_dense ( ) , ( a_dense > b_dense ) ) #NEWLINE# _check ( ( a < b ) ) #NEWLINE# tm . assert_numpy_array_equal ( ( a < b ) . to_dense ( ) , ( a_dense < b_dense ) )