From 2b077f7b0d68a758ae15a73eeef74591bac84360 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 12 Mar 2012 05:58:44 -0400 Subject: Test the batch plugin This adds tests for the batch plugin, and changes its output declaration to allow results as tuples (this tripped validation). The assert_deepequal function ignores the order of items in lists. Document this in its docstring, and use a custom checker for the batch plugin results. --- tests/util.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/util.py') diff --git a/tests/util.py b/tests/util.py index 9bce7c08c..7929321a1 100644 --- a/tests/util.py +++ b/tests/util.py @@ -287,6 +287,9 @@ def assert_deepequal(expected, got, doc='', stack=tuple()): expected = u'how are you?' got = 'how are you?' path = (0, 'world') + + Note that lists and tuples are considered equivalent, and the order of + their elements does not matter. """ if isinstance(expected, tuple): expected = list(expected) -- cgit