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