web/test/unittest_views_basecontrollers.py
changeset 8803 47dd517d6c6f
parent 8694 d901c36bcfce
child 8812 52af67a2f0a5
equal deleted inserted replaced
8802:d92919c995cc 8803:47dd517d6c6f
   531             self.assertEqual(len(rset), 0)
   531             self.assertEqual(len(rset), 0)
   532         finally:
   532         finally:
   533             p.__class__.skip_copy_for = old_skips
   533             p.__class__.skip_copy_for = old_skips
   534 
   534 
   535 
   535 
   536 class EmbedControllerTC(CubicWebTC):
       
   537 
       
   538     def test_nonregr_embed_publish(self):
       
   539         # This test looks a bit stupid but at least it will probably
       
   540         # fail if the controller API changes and if EmbedController is not
       
   541         # updated (which is what happened before this test)
       
   542         req = self.request()
       
   543         req.form['url'] = 'http://www.logilab.fr/'
       
   544         controller = self.vreg['controllers'].select('embed', req)
       
   545         result = controller.publish(rset=None)
       
   546 
       
   547 
       
   548 class ReportBugControllerTC(CubicWebTC):
   536 class ReportBugControllerTC(CubicWebTC):
   549 
   537 
   550     def test_usable_by_guest(self):
   538     def test_usable_by_guest(self):
   551         self.login('anon')
   539         self.login('anon')
   552         self.assertRaises(NoSelectableObject,
   540         self.assertRaises(NoSelectableObject,