def test_donors_get_second_from_dict(): db = {"A Name": [1, 2, 3], "B Name": [4, 5, 6]} assert Donors.get_second(db["B Name"]) == 5
def test_donors_get_second_does_not_exist(): elem = [1] assert Donors.get_second(elem) is None
def test_donors_get_second_from_list(): elem = ["A Name", 1, 2, 3] assert Donors.get_second(elem) == 1