From 9180bd7cd21470b2892b278119baf9b3a7839ac3 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 6 Nov 2017 13:41:13 +0100 Subject: Add: implement step for checking a header --- yarns/900-implements.yarn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'yarns/900-implements.yarn') diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index e4e04e1..5fb476c 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -97,4 +97,7 @@ along with this program. If not, see . assertTrue(wanted.startswith(actual)) IMPLEMENTS THEN result has header (\S+): (\S+) - assert 0 + name = get_next_match() + value = get_next_match() + headers = vars['headers'] + assertEqual(headers[name].lower(), value.lower()) -- cgit v1.2.1