'Helper method to upload a file with registration and enrollment information.'

def _upload_file(self, filename):

    file_path = InstructorDashboardPage.get_asset_path(filename)
    self.q(css=self.auto_enroll_browse_button_selector).results[0].send_keys(file_path)
    self.click_upload_file_button()
