summaryrefslogtreecommitdiff
path: root/tests/dbshell
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dbshell')
-rw-r--r--tests/dbshell/test_mysql.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/dbshell/test_mysql.py b/tests/dbshell/test_mysql.py
index 91c1a6cd50..95faa21647 100644
--- a/tests/dbshell/test_mysql.py
+++ b/tests/dbshell/test_mysql.py
@@ -43,6 +43,22 @@ class MySqlDbshellCommandTestCase(SimpleTestCase):
},
}))
+ def test_options_password(self):
+ self.assertEqual(
+ [
+ 'mysql', '--user=someuser', '--password=optionpassword',
+ '--host=somehost', '--port=444', 'somedbname',
+ ],
+ self.get_command_line_arguments({
+ 'NAME': 'somedbname',
+ 'USER': 'someuser',
+ 'PASSWORD': 'settingpassword',
+ 'HOST': 'somehost',
+ 'PORT': 444,
+ 'OPTIONS': {'password': 'optionpassword'},
+ }),
+ )
+
def test_can_connect_using_sockets(self):
self.assertEqual(
['mysql', '--user=someuser', '--password=somepassword',