예제 #1
0
def test_invalid_code_first_word_not_digit():
    assert not is_valid('corporate-cowbell-commando')
예제 #2
0
def test_invalid_code_not_three_words():
    assert not is_valid('topmost-vagabond')
예제 #3
0
def test_invalid_code_third_word_not_in_wordlist():
    assert not is_valid('3-eating-wasabi')
예제 #4
0
def test_valid_code_is_valid():
    assert is_valid('1-cranky-tapeworm')
예제 #5
0
def test_invalid_code_second_word_not_in_wordlist():
    assert not is_valid('2-tanooki-travesty')