#NEWLINE# def test_iterate_spider_output( self ) : #NEWLINE# #INDENT# i = BaseItem ( ) #NEWLINE# r = Request ( 'http://scrapytest.org' ) #NEWLINE# o = object ( ) #NEWLINE# self . assertEqual ( list ( iterate_spider_output ( i ) ) , [ i ] ) #NEWLINE# self . assertEqual ( list ( iterate_spider_output ( r ) ) , [ r ] ) #NEWLINE# self . assertEqual ( list ( iterate_spider_output ( o ) ) , [ o ] ) #NEWLINE# self . assertEqual ( list ( iterate_spider_output ( [ r , i , o ] ) ) , [ self , i , o ] )