def test_other_methods():
    d = Donor("Tom Thomas", 1000.0)
    d.add_gift(1000.0)
    assert d.avg_gift() == 1000.0
    assert d.num_gifts() == 2
    assert d.total_gifts() == 2000.0
def test_add_gift():
    d = Donor("Tom Thomas", 1000.0)
    d.add_gift(1000.0)
    assert d.gifts == [1000.0, 1000.0]