[tests] fix status change notification test: initial user state is set on commit
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 23 Sep 2009 13:30:16 +0200
changeset 3428 d689ee586295
parent 3427 78dfef45ee48
child 3429 531395cb5a22
[tests] fix status change notification test: initial user state is set on commit
sobjects/test/unittest_notification.py
--- a/sobjects/test/unittest_notification.py	Wed Sep 23 13:29:10 2009 +0200
+++ b/sobjects/test/unittest_notification.py	Wed Sep 23 13:30:16 2009 +0200
@@ -70,8 +70,8 @@
 class StatusChangeViewsTC(CubicWebTC):
 
     def test_status_change_view(self):
-        req = self.session()
-        u = self.create_user('toto', req=req, commit=False)
+        req = self.request()
+        u = self.create_user('toto', req=req)
         u.fire_transition('deactivate', comment=u'yeah')
         self.failIf(MAILBOX)
         self.commit()