def test_error_json(self):

    # Here we send incorrect dataset information

    # dataset format = (dataset_name, [ximagesz, yimagesz, zimagesz], [[xvoxel, yvoxel, zvoxel], [xoffset, yoffset, zoffset], timerange, scalinglevels, scaling)
    dataset = (p.dataset, [1000,2000,1000], [1.0,1.0,5.0], [0,0,0], None, None, None)
    # project format = (project_name, token_name, public)
    project = (p.token, None, None)
    # channel format = { chan1 : (channel_name, datatype, channel_type, data_url, file_name, exceptions, resolution, windowrange, readonly), chan2: ...... }
    channels = { p.channels[1] : (p.channels[1], p.datatype, p.channel_type, 'sample_data_url', 'sample_filename', None, None, None, None) }
    
    json_file = tempfile.NamedTemporaryFile(mode='w+b')
    json_file.write(createJson(dataset, project, channels))
    json_file.seek(0)

    # posting the JSON url and checking if it is successful
    response = json.loads(postURL("http://{}/ca/autoIngest/".format(SITE_HOST), json_file).read())
    assert('Dataset unittest_ds already exists and is different then the chosen dataset. Please choose a different dataset name' == response)
Help for a_read_write_property
dataset/ETHPy150Open neurodata/ndstore/test/test_json.py/Test_Project_Json.test_error_json--crossover with--dataset/ETHPy150Open LabPy/lantz/lantz/drivers/examples/serial_example.py/SerialTemplate.a_read_write_property