Beispiel #1
0
def test_format_ty():
    test_name = test_name_sam
    test_donations = [5500.00, 24.00, 250.00]
    donor = Donor(test_name, test_donations)
    test_thankd_you = donor.format_ty()
    print(f'tft.... len(donor) {len(donor)}')
    print(f'tft.... test_donations[-1]{ test_donations[-1]}')
    print(f'tft.... test_thankd_you {test_thankd_you}')
    assert len(donor) == len(test_donations)
    assert test_name in test_thankd_you
    assert str(test_donations[-1]) in test_thankd_you