X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b70b2213a542595f3a890445103031e5b72e847b..bee4fe5b4b497e37c77fc018fbca99f5e56b80cc:/tests/steps/api_result.py?ds=sidebyside diff --git a/tests/steps/api_result.py b/tests/steps/api_result.py index d83aa83d..369127d8 100644 --- a/tests/steps/api_result.py +++ b/tests/steps/api_result.py @@ -143,6 +143,11 @@ def api_result_header_contains(step): assert_in(line['attr'], world.result_header) m = re.match("%s$" % (line['value'],), world.result_header[line['attr']]) +@step(u'result header has no attribute (.*)') +def api_result_header_contains_not(step, attr): + step.given('the result is valid') + assert_not_in(attr, world.result_header) + @step(u'results contain$') def api_result_contains(step): step.given('at least 1 result is returned')