Ejemplo n.º 1
0
def test_parse_object_direction():
    word_list = [('stop', 'the'),
                 ('direction', 'left')]
    assert_equal(sentence.parse_object(word_list), ('direction', 'left'))
Ejemplo n.º 2
0
def test_parse_object_noun():
    word_list = [('stop', 'the'),
                 ('noun', 'princess')]
    assert_equal(sentence.parse_object(word_list), ('noun', 'princess'))