Beispiel #1
0
def test_donor_repr():
    test_name = test_name_sam
    test_donations = [500.00, 25.00, 34.00, 44.00, 84.00]
    donor = Donor(test_name, test_donations)
    assert donor.__repr__() == f"Donor('{test_name}', {test_donations})"
Beispiel #2
0
 def test_donor_repr(self, test_input):
     donor = Donor(test_input[0], test_input[1])
     assert donor.__repr__() == f"Donor('{test_input[0]}', {test_input[1]})"