def test_donor_list(): ''' Testing our listing function ''' testing = DonorCollection() test_list = testing.list_donor() assert 'Devin Townsand' in test_list
def test_delete_donor(): ''' Testing the delete function ''' testing = DonorCollection() testing.delete_donor('JD Cronise') test_list = testing.list_donor() assert test_list == ['Chris Stapleton', 'Dave Lombardo', 'Devin Townsand', \ 'Randy Blythe', 'Robert Smith']