~openerp-dev/openerp-web/trunk-kanban-document-bth

« back to all changes in this revision

Viewing changes to addons/web/tests/common.py

  • Committer: Darshan Kalola(OpenERP)
  • Date: 2014-02-11 09:32:06 UTC
  • mfrom: (3708.1.225 trunk)
  • Revision ID: dka@tinyerp.com-20140211093206-26jtjtsz9i9y3w9d
[MERGE]sync with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
class MockRequestCase(unittest2.TestCase):
9
9
    def setUp(self):
10
10
        super(MockRequestCase, self).setUp()
11
 
        self.tmp_req = http.set_request(mock.Mock())
12
 
        self.tmp_req.__enter__()
 
11
        http._request_stack.push(mock.Mock())
13
12
 
14
13
    def tearDown(self):
15
 
        self.tmp_req.__exit__(None, None, None)
 
14
        http._request_stack.pop()
16
15
        super(MockRequestCase, self).tearDown()
17
16