You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
630 B

  1. # -*- coding: utf-8 -*-
  2. from mock import patch
  3. from openerp.tests.common import TransactionCase
  4. from openerp.addons.web_action_conditionable.controllers.main \
  5. import MainController
  6. class TestActionConditionable(TransactionCase):
  7. @patch('openerp.addons.web_action_conditionable.'
  8. 'controllers.main.request')
  9. @patch('openerp.addons.web.controllers.main.request')
  10. def test_session_info(self, request, request2):
  11. # Mock
  12. request.env = self.env
  13. request2.env = self.env
  14. ctrl = MainController()
  15. res = ctrl.session_info()
  16. self.assertTrue('group_refs' in res)