#NEWLINE# def test_behaviour( self ) : #NEWLINE# #INDENT# t_per_update = np . array ( self . logger . get_variable_history ( 0 ) ) . flatten ( ) #NEWLINE# expected_t_per_update = np . arange ( 1 , ( self . max_epoch + 1 ) ) #NEWLINE# assert_array_equal ( t_per_update , expected_t_per_update ) #NEWLINE# for i in range ( self . max_epoch ) : #NEWLINE# #INDENT# assert_true ( ( not np . allclose ( abs ( self . logger [ i ] [ 2 ] ) , abs ( self . logger [ i ] [ 3 ] ) ) ) ) #NEWLINE# #UNINDENT# std_per_update = np . array ( self . logger . get_variable_history ( 1 ) ) . flatten ( ) #NEWLINE# assert_true ( np . all ( ( np . diff ( std_per_update ) < 0 ) ) )