""" Module to test some previously found bugs in the convert.py file. """ from unittest import TestCase from convert import _clean_html class TestConvert(TestCase): """ Class to test the convert.py file. """ def test_clean_description(self): """ Test some weird description which contains a "null" value after parsed, which causes problem when parsed by a CSV parser. """ description = 'null\n
' parsed = _clean_html(description) self.assertEqual(parsed, "")