Update tests and convert to stock unittest

For these simple tests Python's built-in unittest framework is more than enough.
No additional dependencies are required.

Added some more test cases with "special" characters to test the escaping code
better.
This commit is contained in:
Dennis Camera 2025-02-18 10:13:27 +01:00
parent 0bd3fa63b8
commit 17b826a6d3
5 changed files with 120 additions and 35 deletions

View file

@ -38,4 +38,10 @@ User-agent: Timpibot
User-agent: VelenPublicWebCrawler
User-agent: Webzio-Extended
User-agent: YouBot
User-agent: crawler.with.dots
User-agent: star***crawler
User-agent: Is this a crawler?
User-agent: a[mazing]{42}(robot)
User-agent: 2^32$
User-agent: curl|sudo bash
Disallow: /