aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py13
1 files changed, 13 insertions, 0 deletions
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")