def test_should_try_online(self):
     state = ClientState()
     self.assertEquals(state.should_try(), True)
Exemple #2
0
 def test_should_try_online(self):
     state = ClientState()
     self.assertEquals(state.should_try(), True)
 def test_should_try_time_passed_error(self):
     state = ClientState()
     state.status = state.ERROR
     state.last_check = time.time() - 10
     state.retry_number = 1
     self.assertEquals(state.should_try(), True)
Exemple #4
0
 def test_should_try_time_passed_error(self):
     state = ClientState()
     state.status = state.ERROR
     state.last_check = time.time() - 10
     state.retry_number = 1
     self.assertEquals(state.should_try(), True)