def test_xy (self):

    p.args = (3000,3100,4000,4100,200,201)
    image_data = np.ones( [2,1,100,100], dtype=np.float32 ) * random.random()
    response = postNPZ(p, image_data)

    url = "http://{}/ca/{}/{}/xy/{}/{},{}/{},{}/{}/".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])
    f = getURL (url)
    
    image_data = np.uint8(image_data*256)
    slice_data = np.asarray ( Image.open(StringIO(f.read())) )
    assert ( np.array_equal(slice_data[:,:,0],image_data[0][0]) )
Test the xy slice cutout
dataset/ETHPy150Open neurodata/ndstore/test/test_probability.py/Test_Probability_Slice.test_xy