def test_user_watch_movie(): movie1 = Movie("Princess and The Frog", 2009) movie1.runtime_minutes = 98 user1 = User("Jenna da Cruz", "testing123") user1.watch_movie(movie1) assert user1.watched_movies == [movie1] assert user1.time_spent_watching_movies_minutes is 98
def test_user_watched_movies_property(): movie1 = Movie("Princess and The Frog", 2009) user1 = User("Jenna da Cruz", "testing123") user1.watch_movie(movie1) assert user1.watched_movies == [movie1]