def test_get_jpeg (self):

    p.args = (3000,3100,4000,4100,200,210)
    image_data = np.ones( [2,10,100,100], dtype=np.uint8 ) * random.randint(0,255)
    response = postNPZ(p, image_data)
    
    url = "http://{}/ca/{}/{}/jpeg/{}/{},{}/{},{}/{},{}/".format(SITE_HOST, p.token, p.channels[0], p.resolution, p.args[0], p.args[1], p.args[2], p.args[3], p.args[4], p.args[5])
    data = getURL(url).read()
    posted_data = np.asarray( Image.open(cStringIO.StringIO(data)) )

    image_data = image_data[0,:,:,:].reshape(1000,100)
    assert ( np.array_equal(image_data,posted_data) )
Test the jpeg volume cutout
dataset/ETHPy150Open neurodata/ndstore/test/test_jpeg.py/Test_Jpeg.test_get_jpeg