def testWriteJSON(self):
    g = geom.Point((- 125), 50)
    a = {'x': 1, 'y': 1.1, 'z': 'one', 'geom': g}
    f1 = feature.Feature(a, 'fid')
    st = feature.writeJSON(f1)
    assert st
    obj = json.loads(st)
    assert (obj['type'] == 'Feature')
    assert (obj['properties']['x'] == 1)
    assert (obj['properties']['y'] == 1.1)
    assert (obj['geometry']['type'] == 'Point')
    assert (obj['geometry']['coordinates'] == [(- 125), 50])
def testWriteJSON(self):
    g = geom.Point((- 125), 50)
    a = {'x': 1, 'y': 1.1, 'z': 'one', 'geom': g}
    f1 = feature.Feature(a, 'fid')
    st = feature.writeJSON(f1)
    assert st
    obj = json.loads(st)
    assert (obj['type'] == 'Feature')
    assert (obj['properties']['x'] == 1)
    assert (obj['properties']['y'] == 1.1)
    assert (obj['geometry']['type'] == 'Point')
    assert (obj['geometry']['coordinates'] == [(- 125), 50])