''' Top 10 all time movie songs from http://www.billboard.com/articles/list/5922814/top-50-movie-songs-of-all-time (title, singer, peak date) 1. "You Light Up My Life", Debby Boone, 10/15/1977 2. "Endless Love", Diana Ross and Lionel Riche, 8/15/1981 3. "(Everything I Do) I Do It For You", Bryan Adams, 7/27/1991 4. "The Theme From 'A Summer Place'", Percy Faith and his orchstra, 2/27/1960 5. "How Deep Is Your Love", Bee Gees, 12/24/1977 6. "Eye Of The Tiger", Survivor, 7/24/1982 7. "Flashdance ... What A Feeling", Irene Cara, 5/28/1983 8. "Night Fever", Bee Gees, 3/18/1978 9. "I Will Always Love You", Whitney Houston, 11/28/1992 10. "End Of The Road", Boyz II Men, 8/15/1992 ''' from song import Song from album import Album from date import Date def test_album(): # Test Song constructor s1 = Song("You Light Up My Life", "Debby Boone", Date(10,15,1977)) s2 = Song("Endless Love", "Diana Ross and Lionel Riche", Date(8,15,1981)) s3 = Song("(Everything I Do) I Do It For You", "Bryan Adams", Date(7,27,1991)) s = [] s += [s1] s += [s2] s += [s3] # Test Album constructor album = Album(s) print('The top three all time movie songs\n--------------') # Test the str function of Album print(album) s4 = Song("The Theme From 'A Summer Place'", \ "Percy Faith and his orchstra", Date(2,27,1960)) s5 = Song("How Deep Is Your Love", "Bee Gees", Date(12,24,1977)) print('Test __contains__') print('s1 should be in album (print True) ' + str(s1 in album)) print('s4 should not in alum (print False) ' + str(s4 in album)) print('now adding s4 and s5 using __iadd__ and __add__') album += s4 # test __iadd__ album = album + s5 # test __add__ print('The top five all time movie songs\n--------------') print(album) print('total length of the album should be 5: ', len(album)) test_album()