'Test error occurrence while creating sailthru list'

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

    mock_sailthru_client.api_post.return_value = SailthruResponse(JsonResponse({'error': 43, 'errormsg': 'Got    an    error'}))
    self.assertEqual(_create_user_list(mock_sailthru_client, 'test_list_name'), False)
