Example #1
0
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"] )
Example #2
0
def Getting_a_nonexistent_poem_is_an_error__test():
    poemtube.getpoem( FakeDb(), "nonexistentid" )