#NEWLINE# def test_ip_based_assignment( self ) : #NEWLINE# #INDENT# s = Settings ( ) #NEWLINE# dns = DnsCache ( self ) #NEWLINE# assign = IpBasedQueueAssignment ( dns ) #NEWLINE# url = 'http://localhost:12345/this' #NEWLINE# self . assertEqual ( '127.0.0.1' , assign . get_identifier ( url ) )