diff options
| -rwxr-xr-x | test.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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') |
