예제 #1
0
def end_date():
    return str2date('2020-01-01')
예제 #2
0
def start_date():
    return str2date('2019-12-01')
예제 #3
0
def payment_date():
    return str2date('2019-12-05')
예제 #4
0
def test_get_balance(loan):
    assert loan.get_balance(str2date('2020-12-01')) == Money('1098.82')
예제 #5
0
def test_add_payment(loan):
    loan.add_payment(Payment(amount=Money('110'), date=str2date('2020-01-01')))
    assert loan.get_balance(str2date('2020-01-01')) == Money('898.37')
예제 #6
0
def payment():
    return Payment(Money('1000'), str2date('2020-01-01'))
예제 #7
0
def loan():
    return Loan(Money('1000'), 13, str2date('2019-11-23'))