Commit eaef8a05 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Copy qa_utils.AssertIn from 1.2 branch

Apparently it was forgotten when import the remote API QA tests.

Reviewed-by: schreiberal
parent c4b6c29c
......@@ -68,6 +68,14 @@ def _SetupColours():
def AssertIn(item, sequence):
"""Raises an error when item is not in sequence.
if item not in sequence:
raise qa_error.Error('%r not 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