'Test fetch list data from sailthru'

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

    mock_sailthru_client.api_get.return_value = SailthruResponse(JsonResponse({'lists': [{'name': 'test1_user_list'}]}))
    self.assertEqual(_get_list_from_email_marketing_provider(mock_sailthru_client), {'test1_user_list': {'name': 'test1_user_list'}})
    mock_sailthru_client.api_get.assert_called_with('list', {})
