diff options
Diffstat (limited to 'tests/test_connection.py')
-rwxr-xr-x | tests/test_connection.py | 4 |
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' |