#NEWLINE# def setUp( self , config = None ) : #NEWLINE# #INDENT# if ( config is None ) : #NEWLINE# #INDENT# config = get_collector_config ( 'WebsiteCollector' , { #NEWLINE# #INDENT# 'url' : '' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# config = get_collector_config ( 'WebsiteCollector' , config ) #NEWLINE# #UNINDENT# self . collector = WebsiteMonitorCollector ( config , None ) #NEWLINE# self . patcher = patch ( 'urllib2.urlopen' ) #NEWLINE# self . urlopen_mock = self . patcher . start ( )