'Scenario: Upload file "A" -> Remove it -> Upload file "B"
Given I have created a Video component with handout file "asset.html"
And I clear handout
And I upload handout file "textbook.pdf"
And I save changes
Then I can see video button "handout"
And I can download handout file with mime type "application/pdf"'

def test_handout_upload_and_clear_works(self):

    self._create_course_unit_with_handout('asset.html', save_settings=False)
    self.video.clear_handout()
    self.video.upload_handout('textbook.pdf')
    self.save_unit_settings()
    self.assertTrue(self.video.is_handout_button_visible)
    self.assertEqual(self.video.download_handout('application/pdf'), (True, True))
