def test_query_objects (self):

    # synapse annotations
    p.anntype = 2
    status = random.randint(0,100)
    confidence = random.random()*0.3+0.1   # number between 0.1 and 0.4
    synapse_type = random.randint(0,100)
    synapse_weight = random.random()*0.9+0.1   # number between 0.1 and 0.9

    for i in range (10):

      # Make an annotation 
      #annid = makeAnno ( anntype, SITE_HOST )
      makeAnno( p, p.anntype)
      #H5AnnotationFile(p)

      # set some fields in the even annotations
      if i % 2 == 0:
        setField(p, 'status', status)

        # set the confidence
        setField(p, 'confidence', confidence)

        # set the type
        setField(p, 'synapse_type', synapse_type)

      # set some fields in the even annotations
      if i % 2 == 1:
        # set the confidence
        setField(p, 'confidence', 1.0 - confidence)


    # check the status
    h5 = queryField(p, 'status', status)
    assert ( h5['ANNOIDS'].shape[0] == 5 )

    # check all the confidence variants
    field_value = '/'.join( ['lt',str(1.0-confidence-0.0001), ''] )
    h5 = queryField(p, 'confidence', field_value)
    assert ( h5['ANNOIDS'].shape[0] == 5 )

    field_value = '/'.join( ['gt',str(confidence+0.0001), ''] )
    h5 = queryField(p, 'confidence', field_value)
    assert ( h5['ANNOIDS'].shape[0] == 5 )


# Not implemented yet.

    # check the synapse_type 
#    url =  "http://%s/ca/%s/query/synapse_type/%s/" % ( SITE_HOST, 'unittest', synapse_type )
#    req = urllib2.Request ( url )
#    f = urllib2.urlopen ( url )
#    retfile = tempfile.NamedTemporaryFile ( )
#    retfile.write ( f.read() )
#    retfile.seek(0)
#    h5ret = h5py.File ( retfile.name, driver='core', backing_store=False )
#    assert h5ret['ANNOIDS'].shape[0] ==5
#
#    # check the synapse_weight 
#    url =  "http://%s/ca/%s/query/synapse_weight/%s/%s/" % ( SITE_HOST, 'unittest', 'gt', confidence-0.00001 )
#    req = urllib2.Request ( url )
#    f = urllib2.urlopen ( url )
#    retfile = tempfile.NamedTemporaryFile ( )
#    retfile.write ( f.read() )
#    retfile.seek(0)
#    h5ret = h5py.File ( retfile.name, driver='core', backing_store=False )
#    assert h5ret['ANNOIDS'].shape[0] ==5
Returns true if the jobBatchSystemID is in the list of jobs.
dataset/ETHPy150Open neurodata/ndstore/test/test_query.py/Test_Ramon.test_query_objects--crossover with--dataset/ETHPy150Open BD2KGenomics/toil/src/toil/batchSystems/jobDispatcher.py/JobDispatcher.hasJob