[FIX] tools.mail: html_email_clean test type of empty value

bzr revid: chm@openerp.com-20121119152446-w1z1vuhfk631h0ko
This commit is contained in:
Christophe Matthieu 2012-11-19 16:24:46 +01:00
parent b4dc178588
commit a4b831e3ed
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class TestCleaner(unittest2.TestCase):
# Test5: False boolean for text must return empty string
new_html = html_email_clean(False)
self.assertEqual('', new_html, 'html_email_cleaner did not change a False (boolean) in an empty string.')
self.assertEqual(type(new_html), type(''), 'html_email_cleaner did not change a False (boolean) in an empty string.')
class TestHtmlTools(unittest2.TestCase):
""" Test some of our generic utility functions about html """