#NEWLINE# def test_unrecognised_port_and_default_host_routes_to_default_site( self ) : #NEWLINE# #INDENT# request = HttpRequest ( ) #NEWLINE# request . path = '/' #NEWLINE# request . META [ 'HTTP_HOST' ] = self . default_site . hostname #NEWLINE# request . META [ 'SERVER_PORT' ] = request . unrecognised_port #NEWLINE# with self . assertNumQueries ( 1 ) : #NEWLINE# #INDENT# self . assertEqual ( Site . find_for_request ( request ) , self . default_site )