summaryrefslogtreecommitdiff
path: root/tests/test_connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_connection.py')
-rwxr-xr-xtests/test_connection.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_connection.py b/tests/test_connection.py
index a9525b4..dae0560 100755
--- a/tests/test_connection.py
+++ b/tests/test_connection.py
@@ -459,6 +459,10 @@ class MakeDsnTestCase(ConnectingTestCase):
dsn = ext.make_dsn(dsnin)
self.assertEqual(dsn, dsnin)
+ def test_null_args(self):
+ dsn = ext.make_dsn("dbname=foo", user="bar", password=None)
+ self.assertDsnEqual(dsn, "dbname=foo user=bar")
+
@skip_before_libpq(9, 2)
def test_url_is_cool(self):
url = 'postgresql://tester:secret@/test?application_name=wat'