aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test.py b/test.py
index 4df0128..81375fc 100755
--- a/test.py
+++ b/test.py
@@ -153,6 +153,13 @@ class TestTransactionCmd(unittest.TestCase):
def setUp(self):
reset_state("test/state_3users.json")
+ def test_unknown_recipient(self):
+ res = run_bot(self, num[alice], "!schieb 10 horst")
+ self.assertEqual(res.stdout, 'ERROR: recipient not known')
+
+ res = run_bot(self, num[alice], "!schieb horst 10")
+ self.assertEqual(res.stdout, 'ERROR: recipient not known')
+
def test_correct_schieb(self):
res = run_bot(self, num[alice], "!schieb 10 " + bob)
self.assertEqual(res.stdout, f'New Balance: {alice} <- 10.00 {bob}\n')