#NEWLINE# def test_page_crawler( self ) : #NEWLINE# #INDENT# ( page_crawler , url_split ) = self . get_page_crawler ( '/index.html' ) #NEWLINE# input_queue = page_crawler . input_queue #NEWLINE# output_queue = page_crawler . output_queue #NEWLINE# input_queue . put ( WorkerInput ( url_split , True ) ) #NEWLINE# input_queue . put ( WORK_DONE ) #NEWLINE# page_crawler . crawl_page_forever ( ) #NEWLINE# page_crawl = output_queue . get ( ) #NEWLINE# self . assertEqual ( 200 , page_crawl . status ) #NEWLINE# self . assertTrue ( ( len ( page_crawl . links ) > 0 ) )