def then_check_http_header_matches(header,regex): assert_true(re.search(regex,scc.response[header.lower()], re.X | re.I) != None, "the regex %s does not match the response\n%s" % (regex, scc.response[header.lower()]))
def expect_content_multiline(content): content = transform_content(content) assert_true(scc.content.find(content) >= 0,"Did not find:\n%s\nin content:\n%s" % (content,scc.content))