[server/test] display rset content on failure
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 24 Nov 2015 10:04:18 +0100
changeset 10908 f80428f94761
parent 10907 9ae707db5265
child 10909 53af91f77b9d
[server/test] display rset content on failure
server/test/unittest_ldapsource.py
--- a/server/test/unittest_ldapsource.py	Tue Nov 24 14:08:47 2015 +0100
+++ b/server/test/unittest_ldapsource.py	Tue Nov 24 10:04:18 2015 +0100
@@ -475,7 +475,7 @@
             with self.admin_access.repo_cnx() as cnx:
                 rset = cnx.execute('Any L WHERE U in_group G, G name %(name)s, U login L',
                                    {'name': 'logilab'})
-                self.assertEqual(len(rset), 0)
+                self.assertEqual(len(rset), 0, rset.rows)
         finally:
             # back to normal ldap setup
             self.tearDownClass()