diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-10-17 14:58:36 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-10-17 14:58:36 +0200 |
| commit | 946977abc2f0e3053f43d120981cbcf1c73fc9fd (patch) | |
| tree | 4c6d18aabcc91f928271314324c1ad44e7b51bb9 /test.py | |
| parent | ee17da20fb504838904f0f06857c76f4c17520e2 (diff) | |
| download | geldschieberbot-946977abc2f0e3053f43d120981cbcf1c73fc9fd.tar.gz geldschieberbot-946977abc2f0e3053f43d120981cbcf1c73fc9fd.zip | |
allow sum cmd for cars
Diffstat (limited to 'test.py')
| -rwxr-xr-x | test.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -406,6 +406,19 @@ class TestCarsTransactions(unittest.TestCase): o = "New Balance: alice <- 20.00 foo\n" self.assertEqual(res.stdout, o) +class TestCarsSum(unittest.TestCase): + def setUp(self): + reset_state("test/state.json_2cars") + + def test_sum_car(self): + res = run_bot(self, num[alice], "!sum foo") + o =\ +"""Summary: +foo: +\tAll fine :) +""" + self.assertEqual(res.stdout, o) + class TestCarPayCmd(unittest.TestCase): def setUp(self): reset_state("test/state.json_2cars") |
