#NEWLINE# def test_set_success( self ) : #NEWLINE# #INDENT# state = ClientState ( ) #NEWLINE# state . status = state . ERROR #NEWLINE# state . last_check = 'foo' #NEWLINE# state . retry_number = 0 #NEWLINE# state . set_success ( ) #NEWLINE# self . assertEquals ( state . status , state . ONLINE ) #NEWLINE# self . assertEquals ( state . last_check , None ) #NEWLINE# self . assertEquals ( self . retry_number , 0 )