#NEWLINE# def start( self , modulename ) : #NEWLINE# #INDENT# mpconf = CONF_PATH #NEWLINE# if ( not os . path . isabs ( mpconf ) ) : #NEWLINE# #INDENT# mpconf = os . path . join ( curdir , mpconf ) #NEWLINE# #UNINDENT# f = open ( mpconf , 'wb' ) #NEWLINE# try : #NEWLINE# #INDENT# output = ( self . template % { #NEWLINE# #INDENT# 'port' : self . port , #NEWLINE# 'testmod' : modulename , #NEWLINE# 'curdir' : curdir , #NEWLINE# #UNINDENT# } ) #NEWLINE# f . write ( output ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# f . close ( ) #NEWLINE# #UNINDENT# result = read_process ( APACHE_PATH , ( '-k start -f %s' % mpconf ) ) #NEWLINE# if result : #NEWLINE# #INDENT# print ( result ) #NEWLINE# #UNINDENT# cherrypy . _cpserver . wait_for_occupied_port ( '127.0.0.1' , self . port ) #NEWLINE# webtest . openURL ( '/ihopetheresnodefault' , port = self . port ) #NEWLINE# time . sleep ( 1 )