def test_check_euro_humantime():
    assert validator.check_humantime("09:00-17:00")
def test_check_humantime_fail():
    assert not validator.check_humantime("09:00")
Пример #3
0
def test_check_humantime_without_am_pm_with_to():
    assert validator.check_humantime("9:00 to 17:00")
def test_check_humantime():
    assert not validator.check_humantime("09:00am")
Пример #5
0
def test_check_humantime_with_spaces():
    assert swc_index_validator.check_humantime("9:00am - 5:00pm")
Пример #6
0
def test_check_humantime_with_to_and_spaces():
    assert validator.check_humantime("9:00 am to 5:00 pm")
Пример #7
0
def test_check_humantime_fail():
    assert not validator.check_humantime("09:00")
def test_check_humantime_with_to_and_spaces():
    assert validator.check_humantime("9:00 am to 5:00 pm")
Пример #9
0
def test_check_humantime():
    assert not validator.check_humantime("09:00am")
Пример #10
0
def test_check_euro_humantime():
    assert validator.check_humantime("09:00-17:00")
Пример #11
0
def test_check_humantime_without_am_pm_with_to():
    assert swc_index_validator.check_humantime("9:00 to 17:00")
Пример #12
0
def test_check_humantime_without_am_pm():
    assert swc_index_validator.check_humantime("9:00-17:00")
Пример #13
0
def test_check_humantime_with_to():
    assert swc_index_validator.check_humantime("9:00am to 5:00pm")
def test_check_humantime_only_am():
    assert not validator.check_humantime("am")
Пример #15
0
def test_check_humantime_only_am():
    assert not validator.check_humantime("am")
def test_check_humantime_with_extra_spaces():
    assert validator.check_humantime("9:00 am - 5:00 pm")
Пример #17
0
def test_check_humantime_with_extra_spaces():
    assert validator.check_humantime("9:00 am - 5:00 pm")
def test_check_humantime_without_am_pm():
    assert validator.check_humantime("9:00-17:00")
Пример #19
0
def test_check_humantime():
    assert not swc_index_validator.check_humantime("09:00am")