'Verify that if verified mode is expired and include expire flag is
false then enrollment cannot be updated.'

def test_update_enrollment_expired_mode_with_error(self):

    self.assert_add_modes_with_enrollment('audit')
    with self.assertRaises(CourseModeNotFoundError):
        self.assert_update_enrollment(mode='verified', include_expired=False)
