#NEWLINE# def test_database_ldap_url( self ) : #NEWLINE# #INDENT# url = 'ldap://cn=admin,dc=nodomain,dc=org:some_secret_password@ldap.nodomain.org/' #NEWLINE# url = Env . db_url_config ( url ) #NEWLINE# self . assertEqual ( url [ 'ENGINE' ] , 'ldapdb.backends.ldap' ) #NEWLINE# self . assertEqual ( url [ 'HOST' ] , 'ldap.nodomain.org' ) #NEWLINE# self . assertEqual ( url [ 'PORT' ] , '' ) #NEWLINE# self . assertEqual ( url [ 'NAME' ] , 'ldap://ldap.nodomain.org' ) #NEWLINE# self . assertEqual ( url [ 'USER' ] , 'cn=admin,dc=nodomain,dc=org' ) #NEWLINE# self . assertEqual ( url [ 'PASSWORD' ] , 'some_secret_password' )