#NEWLINE# def test_user_and_password( self ) : #NEWLINE# #INDENT# kwargs = parse_dsn ( 'mysql://root:foo@localhost' ) [ 2 ] #NEWLINE# self . assertEqual ( kwargs [ 'user' ] , 'root' ) #NEWLINE# self . assertEqual ( kwargs [ 'passwd' ] , 'foo' ) #NEWLINE# kwargs = parse_dsn ( 'postgresql://root:foo@localhost' ) [ 2 ] #NEWLINE# self . assertEqual ( kwargs [ 'user' ] , 'root' ) #NEWLINE# self . assertEqual ( kwargs [ 'password' ] , 'foo' )