예제 #1
0
 def test_has_balance_shown(self):
     with freeze_time("2020-01-01"):
         transaction = Transaction(balance=10000)
         result = "01/01/2020 || || || 100.00 "
         assert transaction.display() == result
예제 #2
0
 def test_has_date_formatted(self):
     with freeze_time("2020-01-01"):
         transaction = Transaction()
         result = "01/01/2020 || || || "
         assert transaction.display() == result
예제 #3
0
 def test_has_debit_shown(self):
     with freeze_time("2020-01-01"):
         transaction = Transaction(debit=10000)
         result = "01/01/2020 || || 100.00 || "
         assert transaction.display() == result