'Test when error occurred while fetching data from sailthru'

@patch('email_marketing.tasks.SailthruClient')
def test_get_sailthru_list_map_error(self, mock_sailthru_client):

    mock_sailthru_client.api_get.return_value = SailthruResponse(JsonResponse({'error': 43, 'errormsg': 'Got    an    error'}))
    self.assertEqual(_get_list_from_email_marketing_provider(mock_sailthru_client), {})
