def test_annotation_field (self):
    """Upload an annotation and test it's fields"""

    # Make an annotation 
    makeAnno (p, 1)
    
    # Test Status
    status = random.randint (0,100)
    f = setField(p, 'status', status)
    f = getField(p, 'status')
    assert status == int(f.read()) 

    # Test confidence
    confidence = random.random ()
    f = setField(p, 'confidence', confidence)
    f = getField(p, 'confidence')
    assert confidence - float(f.read()) < 0.001
    
    # Test author
    #f = self.getField(p, 'author')
    #assert 'Unit Test' == f.read()
dataset/ETHPy150Open neurodata/ndstore/test/test_ramon.py/Test_Ramon.test_annotation_field/original