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.

19 lines
615 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2017 LasLabs Inc.
  3. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
  4. from odoo.tests.common import TransactionCase
  5. class TestMailMessage(TransactionCase):
  6. def setUp(self):
  7. super(TestMailMessage, self).setUp()
  8. partner = self.env.user.partner_id
  9. partner.message_post('Test Message')
  10. self.message = partner.message_ids[-1]
  11. def test_message_reply(self):
  12. self.assertEqual(len(self.message.message_ids), 1)
  13. self.message.message_post('Test Reply')
  14. self.assertEqual(len(self.message.message_ids), 2)