'Scenario: Handout clearing works correctly w/ preliminary saving
Given I have created a Video component with handout file "textbook.pdf"
And I save changes
And I can download handout file with mime type "application/pdf"
And I edit the component
And I open tab "Advanced"
And I clear handout
And I save changes
Then I do not see video button "handout"'

def test_handout_clearing_works_w_save(self):

    self._create_course_unit_with_handout('textbook.pdf')
    self.assertEqual(self.video.download_handout('application/pdf'), (True, True))
    self.edit_component()
    self.open_advanced_tab()
    self.video.clear_handout()
    self.save_unit_settings()
    self.assertFalse(self.video.is_handout_button_visible)
