summaryrefslogtreecommitdiff
path: root/web_responsive/tests/test_res_users.py
blob: 07619ef22317d8012a5ec8f6c3e484f3ce020306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Copyright 2018 Alexandre Díaz
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from odoo.tests import common


class TestResUsers(common.TransactionCase):
    def test_chatter_position_wr(self):
        user_public = self.env.ref("base.public_user")

        self.assertEqual(user_public.chatter_position, "sided")
        user_public.with_user(user_public).write({"chatter_position": "normal"})
        self.assertEqual(user_public.chatter_position, "normal")