def METHOD_NAME(self):
    """Ensure a file is provided if the submit action was utilized"""
    data = {"submit": "Submit"}
    form = ScheduleSectionForm(data=data, schedule=self.schedule)
    self.assertIn("filename", form.errors)