示例#1
0
 def test_should_try_online(self):
     state = ClientState()
     self.assertEquals(state.should_try(), True)
示例#2
0
 def test_should_try_online(self):
     state = ClientState()
     self.assertEquals(state.should_try(), True)
示例#3
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)
示例#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)