X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=tests%2Fprofanity_filter_test.py;h=e452d6ac072cc0b2f7a7935262727245b43a53d3;hb=713a609bd19d491de03debf8a4a6ddf2540b13dc;hp=5648ad350630a68f60af9bf3597a1b0013ec6666;hpb=eb1c6392095947b3205c4d52cd9b1507e6cd776b;p=python_utils.git diff --git a/tests/profanity_filter_test.py b/tests/profanity_filter_test.py index 5648ad3..e452d6a 100755 --- a/tests/profanity_filter_test.py +++ b/tests/profanity_filter_test.py @@ -7,13 +7,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__':