web/test/unittest_application.py
changeset 3524 a3431f4e2f40
parent 3462 3a79fecdd2b4
parent 3523 16880e7ee3fa
child 3657 706d7bf0ae3d
--- a/web/test/unittest_application.py	Mon Sep 28 16:39:10 2009 +0200
+++ b/web/test/unittest_application.py	Tue Sep 29 15:58:44 2009 +0200
@@ -138,6 +138,11 @@
 
 
 class ApplicationTC(CubicWebTC):
+    def setUp(self):
+        super(ApplicationTC, self).setUp()
+        def raise_hdlr(*args, **kwargs):
+            raise
+        self.app.error_handler = raise_hdlr
 
     def publish(self, req, path='view'):
         return self.app.publish(path, req)
@@ -411,6 +416,12 @@
         self.assertRaises(AuthenticationError, self.publish, req, 'logout')
         self.assertEquals(len(self.open_sessions), 0)
 
+    def test_non_regr_optional_first_var(self):
+        req = self.request()
+        # expect a rset with None in [0][0]
+        req.form['rql'] = 'rql:Any OV1, X WHERE X custom_workflow OV1?'
+        self.publish(req)
+        print 'yuea'
 
 if __name__ == '__main__':
     unittest_main()