def test_bulk_disable(self): ''' Test for disable all the given workers in the specific load balancer ''' with patch.object(modjk, '_do_http', return_value= {'worker.result.type': 'OK'}): self.assertTrue(modjk.bulk_disable(["node1", "node2", "node3"], 'loadbalancer1'))
def test_bulk_disable(): """ Test for disable all the given workers in the specific load balancer """ with patch.object(modjk, "_do_http", return_value={"worker.result.type": "OK"}): assert modjk.bulk_disable(["node1", "node2", "node3"], "loadbalancer1")