Beispiel #1
0
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
Beispiel #2
0
    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)
Beispiel #3
0
    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)