def test_worker_activated(self): """ Test to activate all the workers in the modjk load balancer """ name = "loadbalancer" ret = {"name": name, "result": False, "comment": "", "changes": {}} ret.update({"comment": LIST_NOT_STR}) self.assertDictEqual(modjk.worker_activated(name, "app1"), ret)
def test_worker_activated(list_not_str): """ Test to activate all the workers in the modjk load balancer """ name = "loadbalancer" ret = {"name": name, "result": False, "comment": "", "changes": {}} ret.update({"comment": list_not_str}) assert modjk.worker_activated(name, "app1") == ret
def test_worker_activated(self): ''' Test to activate all the workers in the modjk load balancer ''' name = 'loadbalancer' ret = {'name': name, 'result': False, 'comment': '', 'changes': {}} ret.update({'comment': LIST_NOT_STR}) self.assertDictEqual(modjk.worker_activated(name, 'app1'), ret)
def test_worker_activated(self): ''' Test to activate all the workers in the modjk load balancer ''' name = 'loadbalancer' ret = {'name': name, 'result': False, 'comment': '', 'changes': {}} comt = ("workers should be a list not a <type 'str'>") ret.update({'comment': comt}) self.assertDictEqual(modjk.worker_activated(name, 'app1'), ret)