<s> import os <EOL> import unittest <EOL> from bookbargain_api import app as book_api <EOL> '''<STR_LIT>''' <EOL> class BookBargainTestCase ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . app = book_api . test_client ( ) <EOL> book_api . config [ '<STR_LIT>' ] = True <EOL> def tearDown ( self ) : <EOL> pass <EOL> def test_function ( self ) : <EOL> for isbn in [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] : <EOL> resp = self . app . get ( '<STR_LIT>' + isbn ) <EOL> assert '<STR_LIT>' in resp . data <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
