diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2018-08-27 10:11:52 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2018-09-05 16:26:52 +0200 |
commit | 2f46736078140acedab3db502794c7617964510b (patch) | |
tree | bd5d6fb144449df0585900bc929d694654262b1d /tests | |
parent | 173ec7473b67f8b4eead99ecaea401d4bb20a65a (diff) | |
download | m2crypto-2f46736078140acedab3db502794c7617964510b.tar.gz |
Make ctrl_cmd_string method more robust against type of arguments.
Technically speaking we prescribe in the type string that the paramteres
should be str, but users don't like to care about the type of
parameters.
Fixes #228
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_engine.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_engine.py b/tests/test_engine.py index c2c6047..5439ee3 100644 --- a/tests/test_engine.py +++ b/tests/test_engine.py @@ -30,6 +30,11 @@ class EngineTestCase(unittest.TestCase): Engine.load_dynamic() Engine.Engine('dynamic') + def test_engine_ctrl_cmd_string(self): + Engine.load_dynamic() + e = Engine.Engine('dynamic') + e.ctrl_cmd_string('ID', 'TESTID') + def test_load_private(self): Engine.load_openssl() e = Engine.Engine('openssl') |