diff options
Diffstat (limited to 'tests/dbshell')
| -rw-r--r-- | tests/dbshell/test_mysql.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/dbshell/test_mysql.py b/tests/dbshell/test_mysql.py index 95faa21647..e09644962b 100644 --- a/tests/dbshell/test_mysql.py +++ b/tests/dbshell/test_mysql.py @@ -59,6 +59,23 @@ class MySqlDbshellCommandTestCase(SimpleTestCase): }), ) + def test_options_charset(self): + self.assertEqual( + [ + 'mysql', '--user=someuser', '--password=somepassword', + '--host=somehost', '--port=444', + '--default-character-set=utf8', 'somedbname', + ], + self.get_command_line_arguments({ + 'NAME': 'somedbname', + 'USER': 'someuser', + 'PASSWORD': 'somepassword', + 'HOST': 'somehost', + 'PORT': 444, + 'OPTIONS': {'charset': 'utf8'}, + }), + ) + def test_can_connect_using_sockets(self): self.assertEqual( ['mysql', '--user=someuser', '--password=somepassword', |
