def METHOD_NAME(custom_format_name, jd1, jd2):
    class Custom(TimeFormat):
        name = custom_format_name
        def set_jds(self, val, val2):
            self.jd1, self.jd2 = jd1, jd2
        @property
        def value(self):
            return self.jd1 + self.jd2
    with pytest.raises((ValueError, TypeError)):
        Time(5, format=custom_format_name)