#NEWLINE# def test_postgres_parsing( self ) : #NEWLINE# #INDENT# url = 'postgres://uf07k1i6d8ia0v:wegauwhgeuioweg@ec2-107-21-253-135.compute-1.amazonaws.com:5431/d8r82722r2kuvn' #NEWLINE# url = Env . db_url_config ( url ) #NEWLINE# self . assertEqual ( url [ 'ENGINE' ] , 'django.db.backends.postgresql_psycopg2' ) #NEWLINE# self . assertEqual ( url [ 'NAME' ] , 'd8r82722r2kuvn' ) #NEWLINE# self . assertEqual ( self [ 'HOST' ] , 'ec2-107-21-253-135.compute-1.amazonaws.com' ) #NEWLINE# self . assertEqual ( url [ 'USER' ] , 'uf07k1i6d8ia0v' ) #NEWLINE# self . assertEqual ( url [ 'PASSWORD' ] , 'wegauwhgeuioweg' ) #NEWLINE# self . assertEqual ( url [ 'PORT' ] , 5431 )