def test_done_watch(self):
     user1 = User("Martin", "12345")
     user2 = User("Vivian", "12345")
     the_movie = Movie("Moana", 2016)
     user1.add_watchList(the_movie)
     user_list = [user1, user2]
     watchSimulation1 = MovieWatchingSimulation(user_list, the_movie)
     watchSimulation1.done_watching()
     assert watchSimulation1.finish_watch == True
 def test_watch_done(self):
     user1 = User("Martin", "12345")
     user2 = User("Vivian", "12345")
     the_movie = Movie("Moana", 2016)
     user1.add_watchList(the_movie)
     assert user1.watchList == [the_movie]
     user_list = [user1, user2]
     watchSimulation1 = MovieWatchingSimulation(user_list, the_movie)
     watchSimulation1.done_watching()
     assert len(user1.watchList) == 0
 def test_review(self):
     user1 = User("Martin", "12345")
     user2 = User("Vivian", "12345")
     the_movie = Movie("Moana", 2016)
     user1.add_watchList(the_movie)
     user_list = [user1, user2]
     watchSimulation1 = MovieWatchingSimulation(user_list, the_movie)
     watchSimulation1.done_watching()
     movie = Movie("Moana", 2016)
     review_text = "This movie was very enjoyable."
     rating = 8
     review1 = Review(movie, review_text, rating)
     assert len(watchSimulation1.reviews) == 0
     watchSimulation1.add_review(user1, review1)
     assert len(watchSimulation1.reviews) == 1