def test_lb_edit(self): ''' Test for edit the loadbalancer settings ''' with patch.object(modjk, '_do_http', return_value= {'worker.result.type': 'OK'}): self.assertTrue(modjk.lb_edit('loadbalancer1', {'vlr': 1, 'vlt': 60}))
def test_lb_edit(): """ Test for edit the loadbalancer settings """ with patch.object(modjk, "_do_http", return_value={"worker.result.type": "OK"}): assert modjk.lb_edit("loadbalancer1", {"vlr": 1, "vlt": 60})