def test_mod_watch(): """ Test to always restart on watch. """ name = "wsgi_server" ret = {"name": name, "changes": {}, "result": None, "comment": ""} comt = "Supervisord module not activated. Do you need to install supervisord?" ret.update({"comment": comt, "result": False}) assert supervisord.mod_watch(name) == ret
def test_mod_watch(self): """ Test to always restart on watch. """ name = "wsgi_server" ret = {"name": name, "changes": {}, "result": None, "comment": ""} comt = "Supervisord module not activated." " Do you need to install supervisord?" ret.update({"comment": comt, "result": False}) self.assertDictEqual(supervisord.mod_watch(name), ret)
def test_mod_watch(self): ''' Test to always restart on watch. ''' name = 'wsgi_server' ret = {'name': name, 'changes': {}, 'result': None, 'comment': ''} comt = ('Supervisord module not activated.' ' Do you need to install supervisord?') ret.update({'comment': comt, 'result': False}) self.assertDictEqual(supervisord.mod_watch(name), ret)
def test_mod_watch(self): """ Test to always restart on watch. """ name = "wsgi_server" ret = {"name": name, "changes": {}, "result": None, "comment": ""} comt = ("Supervisord module not activated." " Do you need to install supervisord?") ret.update({"comment": comt, "result": False}) self.assertDictEqual(supervisord.mod_watch(name), ret)