diff --git a/openerp/tests/test_mail.py b/openerp/tests/test_mail.py index 0d6c72ff915..975a8b846ee 100755 --- a/openerp/tests/test_mail.py +++ b/openerp/tests/test_mail.py @@ -124,8 +124,7 @@ bert.tartopoils@miam.miam class TestSanitizer(unittest2.TestCase): - """ Test the html sanitizer """ - # TDE note: could be improved by actually checking the output + """ Test the html sanitizer that filters html to remove unwanted attributes """ def test_simple(self): x = "yop" @@ -135,15 +134,19 @@ class TestSanitizer(unittest2.TestCase): x = 'lala

yop

xxx' self.assertEqual(x, html_sanitize(x)) - def test_no_exception(self): - html_sanitize(HTML_SOURCE) + def test_html(self): + sanitized_html = html_sanitize(HTML_SOURCE) + for tag in ['', '
', '', '', '', '', '
  • ', '
    ', '