コード例 #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
ファイル: tests.py プロジェクト: JASchilz/training.python_web
 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