diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-02-12 16:31:41 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-02-12 16:31:41 +0100 |
| commit | e09f5cd2646e4ada2800bf4bc13f6ed4f3f6b10a (patch) | |
| tree | 5902122973b5de635ea58e7d692133e87889e91a /addons/mail/tests/test_mail_gateway.py | |
| parent | 150d5a9e18b83ec2525ac01a7b6a514925fde9fc (diff) | |
[FIX] mail: fixed tests, no more assertionerror, but valueerror
bzr revid: tde@openerp.com-20140212153141-ajwmd26of69tfoer
Diffstat (limited to 'addons/mail/tests/test_mail_gateway.py')
| -rw-r--r-- | addons/mail/tests/test_mail_gateway.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/tests/test_mail_gateway.py b/addons/mail/tests/test_mail_gateway.py index 8b10afe82f5..e7a22065ea1 100644 --- a/addons/mail/tests/test_mail_gateway.py +++ b/addons/mail/tests/test_mail_gateway.py @@ -411,14 +411,14 @@ class TestMailgateway(TestMailBase): # -------------------------------------------------- # Do: incoming email with model that does not accepts incoming emails must raise - self.assertRaises(AssertionError, + self.assertRaises(ValueError, format_and_process, MAIL_TEMPLATE, to='noone@example.com', subject='spam', extra='', model='res.country', msg_id='<1198923581.41972151344608186760.JavaMail.new4@agrolait.com>') # Do: incoming email without model and without alias must raise - self.assertRaises(AssertionError, + self.assertRaises(ValueError, format_and_process, MAIL_TEMPLATE, to='noone@example.com', subject='spam', extra='', |
