cubicweb/test/unittest_req.py
changeset 12180 72a890b713c1
parent 11913 4516c3956d46
child 12182 50109859da43
--- a/cubicweb/test/unittest_req.py	Tue Apr 25 17:10:16 2017 +0200
+++ b/cubicweb/test/unittest_req.py	Tue Apr 25 17:11:18 2017 +0200
@@ -147,13 +147,19 @@
             users = list(users)
             self.assertEqual(len(users), 2)
 
-            with self.assertRaises(AssertionError):
+            with self.assertRaisesRegexp(
+                AssertionError, '^chapeau not in CWUser subject relations$'
+            ):
                 req.find('CWUser', chapeau=u"melon")
 
-            with self.assertRaises(AssertionError):
+            with self.assertRaisesRegexp(
+                AssertionError, '^buddy not in CWUser object relations$'
+            ):
                 req.find('CWUser', reverse_buddy=users[0])
 
-            with self.assertRaises(NotImplementedError):
+            with self.assertRaisesRegexp(
+                NotImplementedError, '^in_group: list of values are not supported$'
+            ):
                 req.find('CWUser', in_group=[1, 2])