Beispiel #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'])
 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"])
Beispiel #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"]
Beispiel #4
0
 def test_list_plugins(self):
     '''
     Test if it list all the munin plugins
     '''
     self.assertListEqual(munin.list_plugins(), ['uptime'])
Beispiel #5
0
 def test_list_plugins(self):
     '''
     Test if it list all the munin plugins
     '''
     self.assertListEqual(munin.list_plugins(), ['uptime'])