summaryrefslogtreecommitdiff
path: root/yarns/900-implements.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-06 13:41:13 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-06 13:41:13 +0100
commit9180bd7cd21470b2892b278119baf9b3a7839ac3 (patch)
treed1b130723a6870929cbf0e385ff62451c6f72002 /yarns/900-implements.yarn
parent21b2c6517b009b1534ebe18a128f4dfcce77e86e (diff)
downloadick2-9180bd7cd21470b2892b278119baf9b3a7839ac3.tar.gz
Add: implement step for checking a header
Diffstat (limited to 'yarns/900-implements.yarn')
-rw-r--r--yarns/900-implements.yarn5
1 files changed, 4 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
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())