#NEWLINE# def test_runspider_no_spider_found( self ) : #NEWLINE# #INDENT# p = self . runspider ( 'from scrapy.spiders import Spider\n' ) #NEWLINE# log = to_native_str ( p . stderr . read ( ) ) #NEWLINE# self . assertIn ( 'No spider found in file' , log )