def test_dead(self): """ Test to ensure the named service is dead (not running). """ name = "wsgi_server" ret = {"name": name, "changes": {}, "result": None, "comment": ""} with patch.dict(supervisord.__opts__, {"test": True}): comt = "Service {0} is set to be stopped".format(name) ret.update({"comment": comt}) self.assertDictEqual(supervisord.dead(name), ret)
def test_dead(self): ''' Test to ensure the named service is dead (not running). ''' name = 'wsgi_server' ret = {'name': name, 'changes': {}, 'result': None, 'comment': ''} with patch.dict(supervisord.__opts__, {'test': True}): comt = ('Service {0} is set to be stopped'.format(name)) ret.update({'comment': comt}) self.assertDictEqual(supervisord.dead(name), ret)