From 8cdc06fc46bda7723d7c2d9ac094c24e0d2410bd Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 27 Aug 2013 20:17:45 +0300 Subject: ComponentTestBase: more verbose output in case of branch mismatch Signed-off-by: Markus Lehtonen --- tests/component/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/component/__init__.py b/tests/component/__init__.py index 115f995..9bc126d 100644 --- a/tests/component/__init__.py +++ b/tests/component/__init__.py @@ -121,7 +121,10 @@ class ComponentTestBase(object): branch = repo.branch assert branch == current_branch assert repo.is_clean() - assert set(repo.get_local_branches()) == set(branches) + local_branches = repo.get_local_branches() + assert_msg = "Branches: expected %s, found %s" % (branches, + local_branches) + assert set(local_branches) == set(branches), assert_msg if files is not None: # Get files of the working copy recursively local = set() -- cgit v1.2.3