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())
Exemple #2
0
 def test_details(self):
     band = Band("Death")
     message = band.details()
     expected = "Band Death\n"
     self.assertEqual(message, expected)