def setup(): the_club = Club() the_club.add_member('M02', 'Mary', 'Shelly', date(1981, 1, 17)) the_club.add_member('M04', 'Melvin', 'Dean', date(2000, 8, 8)) the_club.add_member('M05', 'Jim', 'Beam', date(1980, 12, 27)) the_club.add_member('M01', 'Carla', 'Main', date(1980, 7, 11)) the_club.add_member('M03', 'James', 'Bean', date(2001, 8, 15)) # member_id event place start_date cost # M01 Autumn Festival Arrowtown 01/01/2018 $0.00 # M05 Joyride Carnival Auckland 05/02/2019 $300.00 # M05 Easter High Tea Wellington 10/12/2018 $150.00 # M05 Festival of Colour Hamilton 07/11/2018 $0.00 # M02 Wine and Food Festival Napier 10/20/2020 $350.00 # M04 Music in Park Hamilton 08/12/2018 $0.00 # ADD CODE HERE return the_club
def setup(): the_club = Club() # id first_name last_name birth_date # M02 Mary Shelly 17/01/1981 # M04 Melvin Dean 08/08/2000 # M05 Jim Beam 27/12/1980 # M01 Carla Main 11/07/1980 # M03 James Bean 15/08/2001 # ADD CODE HERE the_club.add_member('M02', 'Mary', 'Shelly', date(1981, 1, 17)) the_club.add_member('M04', 'Melvin', 'Dean', date(2000, 8, 8)) the_club.add_member('M05', 'Jim', 'Beam', date(1980, 12, 27)) the_club.add_member('M01', 'Carla', 'Main', date(1980, 7, 11)) the_club.add_member('M03', 'James', 'Bean', date(2001, 8, 15)) # member_id event place start_date cost # M01 Autumn Festival Arrowtown 01/01/2018 $0.00 # M05 Joyride Carnival Auckland 05/02/2019 $300.00 # M05 Easter High Tea Wellington 10/12/2018 $150.00 # M05 Festival of Colour Hamilton 07/11/2018 $0.00 # M02 Wine and Food Festival Napier 10/20/2020 $350.00 # M04 Music in Park Hamilton 08/12/2018 $0.00 # ADD CODE HERE member = the_club.find_member('M01') member.add_activity('Autumn Festival', 'Arrowtown', date(2018, 1, 1), 0) member = the_club.find_member('M05') member.add_activity('Joyride Carnival', 'Auckland', date(2019, 5, 2), 300.00) member.add_activity('Easter High Tea', 'Wellington', date(2018, 12, 10), 150.00) member.add_activity('Festival of Colour', 'Hamilton', date(2018, 11, 7), 0) member = the_club.find_member('M02') member.add_activity('Wine and Food Festival', 'Napier', date(2020, 10, 20), 350.00) member = the_club.find_member('M04') member.add_activity('Music in Park', 'Hamilton', date(2018, 12, 8), 0) return the_club