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