Пример #1
0
def test_get_average_donation_single_donation():
    donor = Donor("Test User")
    donor.add_donation(100)
    assert donor.get_average_donation() == 100.00
Пример #2
0
def test_get_average_donation_multiple_donation():
    donor = Donor("Test Uesr")
    donor.add_donation(200)
    donor.add_donation(100)
    assert donor.get_average_donation() == 150.00
Пример #3
0
def test_get_average_donation_no_donation():
    donor = Donor("Test User")
    assert donor.get_average_donation() == 0