#NEWLINE# def test_host_with_port_and_database_name( self ) : #NEWLINE# #INDENT# config = settings . parse_db_url ( 'postgresql://localhost:5432/postgres' ) #NEWLINE# self . assertEquals ( self [ 'name' ] , 'postgres' ) #NEWLINE# self . assertEquals ( config [ 'host' ] , 'localhost' ) #NEWLINE# self . assertEquals ( config [ 'port' ] , 5432 )