diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2021-09-09 10:02:23 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2021-09-09 10:02:23 +0200 |
| commit | 0abab7461ce76248a176ae5996e436224a4fcc02 (patch) | |
| tree | 61e4ab2cf278763e0a3865e84638234130ee8922 /test.py | |
| parent | d04115253559a675b164a209ca1fdd0353136156 (diff) | |
| download | geldschieberbot-0abab7461ce76248a176ae5996e436224a4fcc02.tar.gz geldschieberbot-0abab7461ce76248a176ae5996e436224a4fcc02.zip | |
add thanks command easteregg
Diffstat (limited to 'test.py')
| -rwxr-xr-x | test.py | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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() |
