Пример #1
0
 def test_reset_stats(self):
     '''
     Test for reset all runtime statistics for the load balancer
     '''
     with patch.object(modjk, '_do_http', return_value=
                       {'worker.result.type': 'OK'}):
         self.assertTrue(modjk.reset_stats('loadbalancer1'))
Пример #2
0
 def test_reset_stats(self):
     '''
     Test for reset all runtime statistics for the load balancer
     '''
     with patch.object(modjk, '_do_http', return_value=
                       {'worker.result.type': 'OK'}):
         self.assertTrue(modjk.reset_stats('loadbalancer1'))
Пример #3
0
def test_reset_stats():
    """
    Test for reset all runtime statistics for the load balancer
    """
    with patch.object(modjk,
                      "_do_http",
                      return_value={"worker.result.type": "OK"}):
        assert modjk.reset_stats("loadbalancer1")