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
def call_function_under_test(self): from bookapp import books return books()
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