diff options
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") |
