Esempio n. 1
0
 def test_utils_clean_note(self):
     """Linote for utils clean_note"""
     clean_note("<h1>hello</h1>").should.eq("hello")
Esempio n. 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")
Esempio n. 3
0
 def test_utils_clean_note(self):
     """Linote for utils clean_note"""
     clean_note("<h1>hello</h1>").should.eq("hello")