# HG changeset patch # User Sylvain Thénault # Date 1304589281 -7200 # Node ID a650e6267e978c6fab0a802749f94952a3ddf46c # Parent a21bafe9fe3508ac25bed0651dd71fb08359efe0 [CubicWebTC] fix create_user bw compat diff -r a21bafe9fe35 -r a650e6267e97 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),