def test_movie_remove_actor(): movie1 = Movie("Princess and The Frog", 2009) actor1 = Actor("Anika Noni Rose") actor2 = Actor("Keith David") movie1.add_actor(actor1) movie1.add_actor(actor2) movie1.remove_actor(actor1) assert movie1.return_actor() == [actor2]
def test_movie_add_actor(): movie1 = Movie("Princess and The Frog", 2009) actor1 = Actor("Anika Noni Rose") movie1.add_actor(actor1) assert movie1.return_actor() == [actor1]