Beispiel #1
0
def test_match_invalid_date():
    date_str = "hello"
    assert not match_date(date_str)
Beispiel #2
0
def test_match_date(date_str):
    assert match_date(date_str)
Beispiel #3
0
def test_match_date_dot():
    date_str = "2015.05.10"
    assert match_date(date_str)
Beispiel #4
0
def test_match_invalid_date():
    date_str = "20150510"
    assert not match_date(date_str)
Beispiel #5
0
def test_match_date_dash():
    date_str = "2015-05-10"
    assert match_date(date_str)
Beispiel #6
0
def test_match_invalid_date():
    date_str = "hello"
    assert not match_date(date_str)
Beispiel #7
0
def test_match_invalid_date():
    date_str = "20150510"
    assert not match_date(date_str)
Beispiel #8
0
def test_match_date_dash():
    date_str = "2015-05-10"
    assert match_date(date_str)
Beispiel #9
0
def test_match_date_dot():
    date_str = "2015.05.10"
    assert match_date(date_str)