[CubicWebTC] fix create_user bw compat stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 05 May 2011 11:54:41 +0200
branchstable
changeset 7307 a650e6267e97
parent 7306 a21bafe9fe35
child 7308 ff8d6ae076c4
[CubicWebTC] fix create_user bw compat
devtools/testlib.py
--- a/devtools/testlib.py	Thu May 05 11:46:29 2011 +0200
+++ b/devtools/testlib.py	Thu May 05 11:54:41 2011 +0200
@@ -367,9 +367,8 @@
             elif isinstance(login, tuple):
                 groups = login
             login = req
-            if req is None:
-                assert not isinstance(self, type)
-                req = self._orig_cnx[0].request()
+            assert not isinstance(self, type)
+            req = self._orig_cnx[0].request()
         if password is None:
             password = login.encode('utf8')
         user = req.create_entity('CWUser', login=unicode(login),