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'))
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")