aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test.py b/test.py
index 0120c89..79098f2 100755
--- a/test.py
+++ b/test.py
@@ -1120,6 +1120,18 @@ fiat:
\tBalance: -3.00"""
self.assertEqual(res.stdout, msg)
+class TestThanks(unittest.TestCase):
+ def test_thanks(self):
+ res = run_bot(self, num[alice], "!thanks")
+ self.assertEqual(
+ res.stdout,
+ f"You are welcome. It is a pleasure to work with you, {alice}.")
+
+ def test_thanks_nick(self):
+ res = run_bot(self, num[alice], "!thanks pussy")
+ self.assertEqual(
+ res.stdout,
+ f"You are welcome. It is a pleasure to work with you, {alice}.\nBut don't call me pussy.")
if __name__ == '__main__':
unittest.main()