Commit 79eac09b authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

QA: Add utility to ensure item is not in sequence

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent 074e139f
......@@ -85,6 +85,14 @@ def AssertIn(item, sequence):
raise qa_error.Error('%r not in %r' % (item, sequence))
def AssertNotIn(item, sequence):
"""Raises an error when item is in sequence.
if item in sequence:
raise qa_error.Error('%r in %r' % (item, sequence))
def AssertEqual(first, second):
"""Raises an error when values aren't equal.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment