3 # © Copyright 2021-2022, Scott Gasch
5 """profanity_filter unittest, you fucker."""
9 import profanity_filter as pf
13 class TestProfanityFilter(unittest.TestCase):
14 def test_basic_functionality(self):
15 p = pf.ProfanityFilter()
16 self.assertTrue(p.is_bad_word('shit'))
17 self.assertTrue(p.contains_bad_word('this is another fucking test'))
18 self.assertTrue(p.contains_bad_word('this is another fuckin test'))
20 p.contains_bad_word('Mary had a little lamb whose fleese was white as snow.')
24 if __name__ == '__main__':