def test_get_list_invalid_plugin(self): """ Unittest to test invalid plugin in list of plugins. :param self: :return: """ plugin = 'abcd' audisp_plugins = PluginsModel() out = audisp_plugins.get_list() self.assertNotIn(plugin, out)
def test_get_list_success(self, mock_get): """ Unittest to get list of plugins. :param self: :return: """ plugin = 'dummy1' audisp_plugins = PluginsModel() mock_get.return_value = plugin out = audisp_plugins.get_list() self.assertIn(plugin, out)