aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test.py b/test.py
index d7db0c8..e786a93 100755
--- a/test.py
+++ b/test.py
@@ -836,6 +836,20 @@ alice <- 10.00 bob
self.assertEqual(res.stdout, msg)
compare_state("test/state.json_3users")
+ def test_fuck_transfer(self):
+ run_bot(self, num[alice], f"!transfer 5 {bob} {charlie}")
+ res = run_bot(self, num[alice], "!fuck")
+ msg = \
+"""alice: sorry I fucked up!
+Rewinding:
+!transfer 5 bob charlie
+alice -> 5.00 bob
+alice <- 5.00 charlie
+charlie <- 5.00 bob
+"""
+ self.assertEqual(res.stdout, msg)
+ compare_state("test/state.json_3users")
+
def test_rewind_first(self):
run_bot(self, num[alice], f"!split 3 {bob} {charlie}")
run_bot(self, num[alice], f"!schieb {bob} 10")