def test_worker_disable(self): ''' Test for set the worker to disable state in the lbn load balancer ''' with patch.object(modjk, '_do_http', return_value= {'worker.result.type': 'OK'}): self.assertTrue(modjk.worker_disable('node1', 'loadbalancer1'))
def test_worker_disable(): """ Test for set the worker to disable state in the lbn load balancer """ with patch.object(modjk, "_do_http", return_value={"worker.result.type": "OK"}): assert modjk.worker_disable("node1", "loadbalancer1")