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