[FIX]mail: a test failed if there was the word 'model' in the url, which can happen when the branch name contains 'model' or the domain name itself contain 'model'

bzr revid: dle@openerp.com-20131108164658-x7uznik1n5jo1djd
This commit is contained in:
Denis Ledoux 2013-11-08 17:46:58 +01:00
parent be7084b988
commit 3f6ef87416
1 changed files with 2 additions and 2 deletions

View File

@ -294,9 +294,9 @@ class test_mail(TestMail):
'notification email: link should contain the user login')
self.assertIn('message_id=%s' % mail.mail_message_id.id, url,
'notification email: link based on message should contain the mail_message id')
self.assertNotIn('model', url,
self.assertNotIn('model=mail.group', url,
'notification email: link based on message should not contain model')
self.assertNotIn('res_id', url,
self.assertNotIn('res_id=%s' % group_pigs.id, url,
'notification email: link based on message should not contain res_id')
@mute_logger('openerp.addons.mail.mail_thread', 'openerp.osv.orm')