bugfix: length equal

This commit is contained in:
httprunner
2017-06-30 16:57:56 +08:00
parent 434e82f95e
commit 038a5d8aef
2 changed files with 2 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ def match_expected(value, expected, comparator="eq"):
elif comparator in ["ne", "not_equals"]:
assert value != expected
elif comparator in ["len_eq", "length_equal", "count_eq"]:
assert len(value) == len(expected)
assert len(value) == expected
elif comparator in ["lt", "less_than"]:
assert value < expected
elif comparator in ["le", "less_than_or_equals"]: