Exemplo n.º 1
0
def test_all_book_titles_in_result(storage):
    """verify book titles appear in listing page"""
    from bookapp import books
    actual = books()
    for book_id, info in storage.items():
        expected = info['title']
        assert expected in actual
Exemplo n.º 2
0
 def call_function_under_test(self):
     from bookapp import books
     return books()
Exemplo n.º 3
0
 def call_function_under_test(self):
     from bookapp import books
     return books()
Exemplo n.º 4
0
def test_all_book_ids_in_result(storage):
    """verify book ids appear in listing page"""
    from bookapp import books
    actual = books()
    for expected in storage:
        assert expected in actual