From 946977abc2f0e3053f43d120981cbcf1c73fc9fd Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 17 Oct 2020 14:58:36 +0200 Subject: allow sum cmd for cars --- test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test.py') diff --git a/test.py b/test.py index 17194fb..75ed5af 100755 --- a/test.py +++ b/test.py @@ -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") -- cgit v1.2.3