from project.band import Band
from project.album import Album

from project.song import Song

if __name__ == "__main__":

    song = Song("Running in the 90s", 3.45, False)
    print(song.get_info())
    album = Album("Initial D", song)
    second_song = Song("Around the World", 2.34, False)
    print(album.add_song(second_song))
    print(album.details())
    print(album.publish())
    band = Band("Manuel")
    print(band.add_album(album))
    print(band.remove_album("Initial D"))
    print(band.details())
示例#2
0
 def test_song_init(self):
     song = Song("A", 3.15, False)
     message = song.get_info()
     expected = "A - 3.15"
     self.assertEqual(message, expected)