コード例 #1
0
ファイル: functions_tests.py プロジェクト: rje4242/poemtube
def Can_get_an_individual_poem__test():
    answer = poemtube.getpoem( FakeDb(), "id2" )

    assert_equal( "id2",     answer["id"] )
    assert_equal( "author2", answer["author"] )
    assert_equal( "title2",  answer["title"] )
    assert_equal( "text2",   answer["text"] )
コード例 #2
0
ファイル: functions_tests.py プロジェクト: rje4242/poemtube
def Getting_a_nonexistent_poem_is_an_error__test():
    poemtube.getpoem( FakeDb(), "nonexistentid" )