#NEWLINE# def test_monotonic_decreasing( ) : #NEWLINE# #INDENT# df = pd . DataFrame ( [ 2 , 2 , 1 ] ) #NEWLINE# tm . assert_frame_equal ( df , ck . is_monotonic ( df , increasing = False ) ) #NEWLINE# result = dc . is_monotonic ( increasing = False ) ( _add_n ) ( result ) #NEWLINE# tm . assert_frame_equal ( result , ( df + 1 ) ) #NEWLINE# df = pd . DataFrame ( [ 1 , 2 , 1 ] ) #NEWLINE# with pytest . raises ( AssertionError ) : #NEWLINE# #INDENT# ck . is_monotonic ( df , increasing = False ) #NEWLINE# #UNINDENT# with pytest . raises ( AssertionError ) : #NEWLINE# #INDENT# dc . is_monotonic ( increasing = False ) ( _add_n ) ( df ) #NEWLINE# #UNINDENT# df = pd . DataFrame ( [ 1 , 2 , 3 ] ) #NEWLINE# with pytest . raises ( AssertionError ) : #NEWLINE# #INDENT# ck . is_monotonic ( df , increasing = False ) #NEWLINE# #UNINDENT# with pytest . raises ( AssertionError ) : #NEWLINE# #INDENT# dc . is_monotonic ( increasing = False ) ( _add_n ) ( df )