X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5751686fdce33f6b69a93dd1641ceacb2239791f..cd64788a583f7737ff7cddaa4f21e74ea747bef9:/test/bdd/steps/check_functions.py diff --git a/test/bdd/steps/check_functions.py b/test/bdd/steps/check_functions.py index 49676896..708de852 100644 --- a/test/bdd/steps/check_functions.py +++ b/test/bdd/steps/check_functions.py @@ -11,17 +11,6 @@ import json import math import re -class Almost: - """ Compares a float value with a certain jitter. - """ - def __init__(self, value, offset=0.00001): - self.value = value - self.offset = offset - - def __eq__(self, other): - return abs(other - self.value) < self.offset - - OSM_TYPE = {'N' : 'node', 'W' : 'way', 'R' : 'relation', 'n' : 'node', 'w' : 'way', 'r' : 'relation', 'node' : 'n', 'way' : 'w', 'relation' : 'r'}