fix #278: len_eq for content

This commit is contained in:
httprunner
2018-08-23 19:24:11 +08:00
parent 61b2191fa3
commit 4f5878fa7b
2 changed files with 16 additions and 0 deletions

View File

@@ -89,5 +89,15 @@
validate:
- eq: ["status_code", 200]
- test:
name: validate content length
request:
url: /spec.json
method: GET
validate:
- len_eq: ["content", 9]
- len_eq: ["json", 9]
- len_eq: ["text", 9]