diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-04-29 16:56:11 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-04-29 16:56:11 +0000 |
commit | a74232c70cd8e3857646038900fc03edf63f0dd8 (patch) | |
tree | 56a1ff3ff8eb52ad1553c74c7a838c16071b20b8 /test/engine/parseconnect.py | |
parent | a487142f9b6d4b63270a445d5e3d7517865a00eb (diff) | |
download | sqlalchemy-a74232c70cd8e3857646038900fc03edf63f0dd8.tar.gz |
- added 'url' attribute to Engine
- added docstring to 'echo' attribute
Diffstat (limited to 'test/engine/parseconnect.py')
-rw-r--r-- | test/engine/parseconnect.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/engine/parseconnect.py b/test/engine/parseconnect.py index 49f71f881..967a20ed5 100644 --- a/test/engine/parseconnect.py +++ b/test/engine/parseconnect.py @@ -125,7 +125,17 @@ class CreateEngineTest(PersistTest): assert False except exceptions.DBAPIError: assert True - + + def testurlattr(self): + """test the url attribute on ``Engine``.""" + + e = create_engine('mysql://scott:tiger@localhost/test', module=MockDBAPI()) + u = url.make_url('mysql://scott:tiger@localhost/test') + e2 = create_engine(u, module=MockDBAPI()) + assert e.url.drivername == e2.url.drivername == 'mysql' + assert e.url.username == e2.url.username == 'scott' + assert e2.url is u + def testpoolargs(self): """test that connection pool args make it thru""" e = create_engine('postgres://', creator=None, pool_recycle=-1, echo_pool=None, auto_close_cursors=False, disallow_open_cursors=True, module=MockDBAPI()) |