diff --git a/tests/test_tax.py b/tests/test_tax.py index 953a4e8..e14fa91 100644 --- a/tests/test_tax.py +++ b/tests/test_tax.py @@ -206,6 +206,10 @@ class TaxTestCase(unittest.TestCase): self.assertEqual(lots[0]["cost_ore_original"], 20050000) self.assertEqual(lots[1]["sats_original"], 99900000) self.assertEqual(lots[1]["cost_ore_original"], 20000000) + # The buy must not have consumed anything: its sats fee only lowered the + # sats it received, so the second lot is untouched. + self.assertEqual(lots[0]["sats_remaining"], 0) + self.assertEqual(lots[1]["sats_remaining"], 99900000) # Proceeds 300 000 kr minus the 1 000 kr fee, cost 200 500 kr (FIFO). self.assertEqual(tax.report(2024)["totals"]["gevinst_ore"], 9850000)