Пример #1
0
 def test_list_plugins(self):
     '''
     Test if it list all the munin plugins
     '''
     with patch('salt.modules.munin.list_plugins',
                MagicMock(return_value=['uptime'])):
         self.assertListEqual(munin.list_plugins(), ['uptime'])
Пример #2
0
 def test_list_plugins(self):
     """
     Test if it list all the munin plugins
     """
     with patch("salt.modules.munin.list_plugins",
                MagicMock(return_value=["uptime"])):
         self.assertListEqual(munin.list_plugins(), ["uptime"])
Пример #3
0
def test_list_plugins():
    """
    Test if it list all the munin plugins
    """
    with patch("salt.modules.munin.list_plugins",
               MagicMock(return_value=["uptime"])):
        assert munin.list_plugins() == ["uptime"]
Пример #4
0
 def test_list_plugins(self):
     '''
     Test if it list all the munin plugins
     '''
     self.assertListEqual(munin.list_plugins(), ['uptime'])
Пример #5
0
 def test_list_plugins(self):
     '''
     Test if it list all the munin plugins
     '''
     self.assertListEqual(munin.list_plugins(), ['uptime'])