#NEWLINE# def test_dt_counter( self ) : #NEWLINE# #INDENT# btype = self . client . bucket_type ( 'counters' ) #NEWLINE# bucket = btype . bucket ( self . bucket_name ) #NEWLINE# mycount = datatypes . Counter ( self , self . key_name ) #NEWLINE# mycount . increment ( 5 ) #NEWLINE# mycount . store ( ) #NEWLINE# othercount = bucket . get ( self . key_name ) #NEWLINE# self . assertEqual ( 5 , othercount . value ) #NEWLINE# othercount . decrement ( 3 ) #NEWLINE# othercount . store ( return_body = True ) #NEWLINE# mycount . reload ( ) #NEWLINE# self . assertEqual ( 2 , mycount . value )