def get_csv(client, result_response):
 content = json.loads(result_response.content)
 assert_true(content['isSuccess'])
 csv_link = ('/beeswax/download/%s/csv' % content['id'])
 csv_resp = client.get(csv_link)
 return ''.join(csv_resp.streaming_content)

def get_csv ( client , result_response ) : content = json . loads ( result_response . content ) assert_true ( content [ 'isSuccess' ] ) csv_link = ( '/beeswax/download/%s/csv' % content [ 'id' ] ) csv_resp = client . get ( csv_link ) return '' . join ( csv_resp . streaming_content )
get the csv for a query result .