Exemple #1
0
def test_peek_empty():
    empty_word_list = []
    assert_equal(sentence.peek(empty_word_list), None)
Exemple #2
0
def test_peek():
    word_list = [('noun', 'princess'), ('verb', 'go'), ('direction', 'left')]
    assert_equal(sentence.peek(word_list), 'noun')