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