예제 #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
예제 #2
0
파일: tests.py 프로젝트: lukeatuwpce/wsgi
 def call_function_under_test(self):
     from bookapp import books
     return books()
예제 #3
0
 def call_function_under_test(self):
     from bookapp import books
     return books()
예제 #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