コード例 #1
0
ファイル: sentence_tests.py プロジェクト: franksort/lpthw
def test_parse_object_direction():
    word_list = [('stop', 'the'),
                 ('direction', 'left')]
    assert_equal(sentence.parse_object(word_list), ('direction', 'left'))
コード例 #2
0
ファイル: sentence_tests.py プロジェクト: franksort/lpthw
def test_parse_object_noun():
    word_list = [('stop', 'the'),
                 ('noun', 'princess')]
    assert_equal(sentence.parse_object(word_list), ('noun', 'princess'))