def test_when_seat_taken_is_correct_seat_correct_placements_increases(
         self):
     fake_passenger_assignments = [2, 1, 3, 5, 4]
     size_of_plane = 5
     subject = Plane(fake_passenger_assignments, size_of_plane)
     subject.take_seat(3, 3)
     assert subject.correct_placements == 1
 def test_when_take_seat_and_seat_is_incorrectly_taken_already_a_different_seat_is_chosen(
         self):
     fake_passenger_assignments = [2, 1, 3, 5, 4]
     size_of_plane = 5
     subject = Plane(fake_passenger_assignments, size_of_plane)
     subject.take_seat(3, 4)
     subject.take_seat(3, 3)
     assert subject.correct_placements == 0
 def test_when_take_seat_the_seat_is_removed_from_available_seats(self):
     fake_passenger_assignments = [2, 1, 3, 5, 4]
     size_of_plane = 5
     subject = Plane(fake_passenger_assignments, size_of_plane)
     subject.take_seat(3, 3)
     assert 3 not in subject.available_seats