summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/core/test_web_api.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/core/test_web_api.py b/tests/unit/core/test_web_api.py
index 6d61686c..f19505d0 100644
--- a/tests/unit/core/test_web_api.py
+++ b/tests/unit/core/test_web_api.py
@@ -142,7 +142,15 @@ class RESTApiTests(unittest.TestCase):
def tearDown(self):
return self.plainPort.stopListening()
+ @defer.inlineCallbacks
+ def test_param_encoding(self):
+ params = ['test_types', 1, True]
+ call = yield self.makeAPICall('core/version',
+ params=params)
+ self.assertCall(call, self.canned.backend.version)
+
# core commands
+ # TODO these tests can be generated dinamically
@defer.inlineCallbacks
def test_core_version(self):