Example #1
0
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))
Example #2
0
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))
Example #3
0
def test_fail():
    assert_false(scrumble.is_date("x"))
Example #4
0
def test_fail():
    assert_false(scrumble.is_date("x"))