This commit is contained in:
parent
42eca170a6
commit
8b4d553772
1
src/ragnar/tests/__init__.py
Normal file
1
src/ragnar/tests/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from ragnar.tests.bot import *
|
BIN
src/ragnar/tests/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
src/ragnar/tests/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
BIN
src/ragnar/tests/__pycache__/bot.cpython-312.pyc
Normal file
BIN
src/ragnar/tests/__pycache__/bot.cpython-312.pyc
Normal file
Binary file not shown.
16
src/ragnar/tests/bot.py
Normal file
16
src/ragnar/tests/bot.py
Normal file
@ -0,0 +1,16 @@
|
||||
import unittest
|
||||
from ragnar.bot import Bot
|
||||
|
||||
|
||||
class BotTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.bot = Bot("slutty", "butty")
|
||||
return super().setUp()
|
||||
|
||||
def clean_rant_text(self, text):
|
||||
return text.replace(" ", "")
|
||||
|
||||
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))
|
0
tiggers.js
Normal file
0
tiggers.js
Normal file
Loading…
Reference in New Issue
Block a user