示例#1
0
def test_has_timestamp():
    assert has_timestamp('INFO 2014-07-03T23:27:51 Shutdown initiated.')
    assert has_timestamp('INFO 2014-06-01T13:28:51 Shutdown initiated.')
    assert not has_timestamp('INFO 2014-7-3T23:27:51 Shutdown initiated.')
    assert not has_timestamp('INFO 2014-07-03t23:27:1 Shutdown initiated.')
示例#2
0
def test_has_three_consecutive_vowels():
    assert has_three_consecutive_vowels('beautiful')
    assert has_three_consecutive_vowels('queueing')
    assert not has_timestamp('mountain')
    assert not has_timestamp('house')