def test_get_average_donation_single_donation(): donor = Donor("Test User") donor.add_donation(100) assert donor.get_average_donation() == 100.00
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
def test_get_average_donation_no_donation(): donor = Donor("Test User") assert donor.get_average_donation() == 0