X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/386218397a4723129b31e3954bb960da61f72474..929db57622c6b8756ed341d7ae2862126a7c638f:/htmlfilter_test.py diff --git a/htmlfilter_test.py b/htmlfilter_test.py new file mode 100644 index 0000000..6b5584c --- /dev/null +++ b/htmlfilter_test.py @@ -0,0 +1,23 @@ +# paperdoorknob: Print glowfic +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, version 3. + + +import unittest +from htmlfilter import ApplyHTMLFilters + + +class TestHTMLFilters(unittest.TestCase): + + def testStripNBSP(self) -> None: + self.assertEqual( + ApplyHTMLFilters( + "NoNBSP", + b"

It's really cold.

"), + b"

It's really cold.

") + + +if __name__ == '__main__': + unittest.main()