~openerp-dev/openobject-server/7.0-fix-mail_issues-adh

« back to all changes in this revision

Viewing changes to openerp/tests/test_mail.py

  • Committer: Anand Dharampuriya(OpenERP)
  • Date: 2014-06-17 05:50:21 UTC
  • Revision ID: adh@tinyerp.com-20140617055021-fllu2w8kuc06akax
[IMP] Update regualr expression for multiple line issue and fix broken test case issue

Show diffs side-by-side

added added

removed removed

Lines of Context:
291
291
    def test_plaintext2html(self):
292
292
        cases = [
293
293
            ("First \nSecond \nThird\n \nParagraph\n\r--\nSignature paragraph", 'div',
294
 
             "<div><p>First <br/>Second <br/>Third</p><p>Paragraph</p><p>--<br/>Signature paragraph</p></div>"),
 
294
             "<div><p>First <br/>Second <br/>Third<br/> <br/>Paragraph<br/><br/>--<br/>Signature paragraph</p></div>"),
295
295
            ("First<p>It should be escaped</p>\nSignature", False,
296
296
             "<p>First&lt;p&gt;It should be escaped&lt;/p&gt;<br/>Signature</p>")
297
297
        ]