def METHOD_NAME(self):
    """If bad year range definition, a UserError is raised.
    At least the range origin must be declared.
    """
    with self.assertRaises(ui.UserError):
        self._setup_config(bucket_year=['nodigits'])