#NEWLINE# def testPrePathURLNonDefault( self ) : #NEWLINE# #INDENT# d = DummyChannel ( ) #NEWLINE# d . transport . port = 81 #NEWLINE# request = server . Request ( d , 1 ) #NEWLINE# request . setHost ( 'example.com' , 81 ) #NEWLINE# request . gotLength ( 0 ) #NEWLINE# request . requestReceived ( 'GET' , '/foo/bar' , 'HTTP/1.0' ) #NEWLINE# self . assertEqual ( request . prePathURL ( ) , 'http://example.com:81/foo/bar' )