Exemplo n.º 1
0
    ' dream-sharing technology, is given the inverse task of'
    ' planting an idea into the mind of a CEO.',
    'https://www.youtube.com/watch?v=YoHD9XEInc0', 'https://goo.gl/NK7fvQ')

print(INCEPTION.title)
# | Inception
print(INCEPTION.plot)
# | A thief, who steals corporate secrets through use of dream-sharing
# |  technology, is given the inverse task of planting an idea into the
# |  mind of a CEO.

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Creating an instance by first using `Movie.get_movie_data` to get the values
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

MAD_MAX_DATA = Movie.get_movie_data('Mad Max', '2015')  # passing the year
MAD_MAX = Movie(MAD_MAX_DATA['title'], MAD_MAX_DATA['plot'],
                MAD_MAX_DATA['youtube_url'], MAD_MAX_DATA['poster'],
                MAD_MAX_DATA)  # pass in the dict for the optional `info` attr.

print(MAD_MAX.title)
# | Mad Max: Fury Road
print(MAD_MAX.plot)
# | A woman rebels against a tyrannical ruler in postapocalyptic Australia in
# |  search for her home-land with the help of a group of female prisoners,
# |  a psychotic worshipper, and a drifter named Max.
for key in MAD_MAX.info:
    entry = '{0:>15} -- {1}'.format(key, MAD_MAX.info[key])
    print(entry)
"""
      boxoffice -- $129,483,877