Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,14 @@ def _SetupColours(): ...@@ -68,6 +68,14 @@ def _SetupColours():
_SetupColours() _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): def AssertEqual(first, second):
"""Raises an error when values aren't equal. """Raises an error when values aren't equal.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment