diff --git a/src/ragnar/tests/__pycache__/__init__.cpython-312.pyc b/src/ragnar/tests/__pycache__/__init__.cpython-312.pyc index cea95e2..2625e6b 100644 Binary files a/src/ragnar/tests/__pycache__/__init__.cpython-312.pyc and b/src/ragnar/tests/__pycache__/__init__.cpython-312.pyc differ diff --git a/src/ragnar/tests/__pycache__/bot.cpython-312.pyc b/src/ragnar/tests/__pycache__/bot.cpython-312.pyc index 836ad68..4fa27e8 100644 Binary files a/src/ragnar/tests/__pycache__/bot.cpython-312.pyc and b/src/ragnar/tests/__pycache__/bot.cpython-312.pyc differ diff --git a/src/ragnar/tests/bot.py b/src/ragnar/tests/bot.py index 57e8365..011f91f 100644 --- a/src/ragnar/tests/bot.py +++ b/src/ragnar/tests/bot.py @@ -14,3 +14,11 @@ class BotTestCase(unittest.TestCase): def test_is_sus_rant_regex_match(self): rant_text = "To learn more about our services or to schedule a consultation, contact us at +1 (604) 200-0581 today." self.assertTrue(self.bot.is_sus_rant(42, rant_text)) + + def test_is_sus_rant_regex_url_match_dot_slash(self): + rant_text = "Visit Now: thesleepcompany.in/pages/all-chairs" + self.assertTrue(self.bot.is_sus_rant(42, rant_text)) + + def test_is_sus_rant_regex_url_match_http_or_www(self): + rant_text = "http:// www . google . nl" + self.assertTrue(self.bot.is_sus_rant(42, rant_text))