5 import profanity_filter as pf
9 class TestProfanityFilter(unittest.TestCase):
10 def test_basic_functionality(self):
11 p = pf.ProfanityFilter()
12 self.assertTrue(p.is_bad_word('shit'))
13 self.assertTrue(p.contains_bad_word('this is another fucking test'))
14 self.assertTrue(p.contains_bad_word('this is another fuckin test'))
16 p.contains_bad_word('Mary had a little lamb whose fleese was white as snow.')
20 if __name__ == '__main__':