def do_isdate(input_date, iso_output, raw_output): if iso_output is None: # None is used to represent dates which aren't valid assert_false(scrumble.is_date(input_date), scrumble.as_date(input_date)) else: assert_true(scrumble.is_date(input_date))
def test_fail(): assert_false(scrumble.is_date("x"))