devtools/test/unittest_testlib.py
changeset 4472 d3b1d50fc29a
parent 4252 6c4f109c2b03
child 4473 f2f5576aa6ef
equal deleted inserted replaced
4471:71fbc449e814 4472:d3b1d50fc29a
    24 
    24 
    25     def test_error_raised(self):
    25     def test_error_raised(self):
    26         class MyWebTest(CubicWebTC):
    26         class MyWebTest(CubicWebTC):
    27 
    27 
    28             def test_error_view(self):
    28             def test_error_view(self):
    29                 self.add_entity('Bug', title=u"bt")
    29                 self.request().create_entity('Bug', title=u"bt")
    30                 self.view('raising', self.execute('Bug B'), template=None)
    30                 self.view('raising', self.execute('Bug B'), template=None)
    31 
    31 
    32             def test_correct_view(self):
    32             def test_correct_view(self):
    33                 self.view('primary', self.execute('CWUser U'), template=None)
    33                 self.view('primary', self.execute('CWUser U'), template=None)
    34 
    34