#NEWLINE# def test_decr( self ) : #NEWLINE# #INDENT# stat_obj = Stat ( 'test_stat' , self . resq ) #NEWLINE# stat_obj . incr ( ) #NEWLINE# stat_obj . incr ( ) #NEWLINE# assert ( self . redis . get ( 'resque:stat:test_stat' ) == b'2' ) #NEWLINE# stat_obj . decr ( ) #NEWLINE# assert ( self . redis . get ( 'resque:stat:test_stat' ) == b'1' ) #NEWLINE# stat_obj . incr ( ) #NEWLINE# stat_obj . decr ( 2 ) #NEWLINE# assert ( self . redis . get ( 'resque:stat:test_stat' ) == b'0' )