From a2e6f175123da7cf4facf026573639f904b49fd4 Mon Sep 17 00:00:00 2001 From: Joseph Hale Date: Mon, 23 May 2022 17:44:51 -0700 Subject: [PATCH] Add test to make sure *= works with `MultiCounter` --- tests/test_multicounter.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_multicounter.py b/tests/test_multicounter.py index f4dfa04..916ed18 100644 --- a/tests/test_multicounter.py +++ b/tests/test_multicounter.py @@ -67,3 +67,11 @@ def test_can_stringify_multicounter(mc): def test_can_count_backwards(mc): mc.cookies -= 1 assert mc.cookies == -1 + + +def test_can_multiply_counter(mc): + mc.cookies = 1 + mc.pies = 3 + mc.cookies *= 3 + assert mc.cookies == 3 + assert mc.pies == 3 -- 2.51.2