context.db.commit()
-@then("(?P<oid>\w+) expands to interpolation")
-def check_location_property_osmline(context, oid):
+@then("(?P<oid>\w+) expands to(?P<neg> no)? interpolation")
+def check_location_property_osmline(context, oid, neg):
cur = context.db.cursor(cursor_factory=psycopg2.extras.DictCursor)
nid = NominatimID(oid)
FROM location_property_osmline WHERE osm_id = %s""",
(nid.oid, ))
+ if neg:
+ eq_(0, cur.rowcount)
+ return
+
todo = list(range(len(list(context.table))))
for res in cur:
for i in todo: