def test_success(self, mock_list_providers): providers = [ "booth", "heartbeat", "openstack", "pacemaker", ] mock_list_providers.return_value = providers self.assertEqual(lib.list_ocf_providers(self.lib_env), providers) mock_list_providers.assert_called_once_with("mock_runner")
def test_success(self, mock_list_providers): providers = [ "booth", "heartbeat", "openstack", "pacemaker", ] mock_list_providers.return_value = providers self.assertEqual( lib.list_ocf_providers(self.lib_env), providers ) mock_list_providers.assert_called_once_with("mock_runner")