web/test/unittest_controller.py
changeset 3460 e4843535db25
parent 2773 b2530e3e0afb
child 5421 8167de96c523
--- a/web/test/unittest_controller.py	Thu Sep 24 00:23:32 2009 +0200
+++ b/web/test/unittest_controller.py	Thu Sep 24 00:24:21 2009 +0200
@@ -13,7 +13,7 @@
 
     def test_parse_datetime_ok(self):
         ctrl = self.vreg['controllers'].select('view', self.request())
-        pd = ctrl.parse_datetime
+        pd = ctrl._cw.parse_datetime
         self.assertIsInstance(pd('2006/06/24 12:18'), datetime)
         self.assertIsInstance(pd('2006/06/24'), date)
         self.assertIsInstance(pd('2006/06/24 12:18', 'Datetime'), datetime)
@@ -23,7 +23,7 @@
 
     def test_parse_datetime_ko(self):
         ctrl = self.vreg['controllers'].select('view', self.request())
-        pd = ctrl.parse_datetime
+        pd = ctrl._cw.parse_datetime
         self.assertRaises(ValueError,
                           pd, '2006/06/24 12:188', 'Datetime')
         self.assertRaises(ValueError,