3.6 test api update
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Feb 2010 12:05:10 +0100
changeset 4472 d3b1d50fc29a
parent 4471 71fbc449e814
child 4473 f2f5576aa6ef
3.6 test api update
devtools/test/unittest_testlib.py
--- a/devtools/test/unittest_testlib.py	Fri Feb 05 12:04:48 2010 +0100
+++ b/devtools/test/unittest_testlib.py	Fri Feb 05 12:05:10 2010 +0100
@@ -26,7 +26,7 @@
         class MyWebTest(CubicWebTC):
 
             def test_error_view(self):
-                self.add_entity('Bug', title=u"bt")
+                self.request().create_entity('Bug', title=u"bt")
                 self.view('raising', self.execute('Bug B'), template=None)
 
             def test_correct_view(self):