def test_utils_clean_note(self): """Linote for utils clean_note""" clean_note("<h1>hello</h1>").should.eq("hello")
def test_clean_note(self): utils.cleaner = Mock() utils.cleaner.clean_html.return_value = "hulahoop" result = utils.clean_note("hulahoop") self.assertEqual(result, "hulahoop")