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