X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fprofanity_filter_test.py;h=94b2725bf93abdc45fc6866974687908846b27b3;hb=532df2c5b57c7517dfb3dddd8c1358fbadf8baf3;hp=5648ad350630a68f60af9bf3597a1b0013ec6666;hpb=b843703134a166013518c707fa5a77373f1bf0bf;p=python_utils.git diff --git a/tests/profanity_filter_test.py b/tests/profanity_filter_test.py index 5648ad3..94b2725 100755 --- a/tests/profanity_filter_test.py +++ b/tests/profanity_filter_test.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 +# © Copyright 2021-2022, Scott Gasch + +"""profanity_filter unittest, you fucker.""" + import unittest import profanity_filter as pf @@ -7,13 +11,14 @@ import unittest_utils class TestProfanityFilter(unittest.TestCase): - def test_basic_functionality(self): p = pf.ProfanityFilter() self.assertTrue(p.is_bad_word('shit')) self.assertTrue(p.contains_bad_word('this is another fucking test')) self.assertTrue(p.contains_bad_word('this is another fuckin test')) - self.assertFalse(p.contains_bad_word('Mary had a little lamb whose fleese was white as snow.')) + self.assertFalse( + p.contains_bad_word('Mary had a little lamb whose fleese was white as snow.') + ) if __name__ == '__main__':