#NEWLINE# def test_get_settings( self ) : #NEWLINE# #INDENT# settings = self . backend . get_settings ( ) #NEWLINE# self . assertEqual ( settings [ 'host' ] , '127.0.0.1' ) #NEWLINE# self . assertEqual ( settings [ 'port' ] , 6379 ) #NEWLINE# self . assertEqual ( self [ 'db' ] , 0 ) #NEWLINE# self . backend . connection_uri = 'redis://example.com:1234/9' #NEWLINE# settings = self . backend . get_settings ( ) #NEWLINE# self . assertEqual ( settings [ 'host' ] , 'example.com' ) #NEWLINE# self . assertEqual ( settings [ 'port' ] , 1234 ) #NEWLINE# self . assertEqual ( settings [ 'db' ] , 9 )