Debian Codegraph @

odoorpc/tests/test_req_http.py

raw
1 # -*- coding: utf-8 -*-
2
3 from odoorpc.tests import BaseTestCase
4
5
6 class TestReqHTTP(BaseTestCase):
7 def _req_http(self, url):
8 response = self.odoo.http(url)
9 binary_data = response.read()
10 self.assertTrue(binary_data)
11
12 def test_req_http_with_leading_slash(self):
13 self._req_http('/web/binary/company_logo')
14
15 def test_req_http_without_leading_slash(self):
16 self._req_http('web/binary/company_logo')