Commits

agentultra committed ab1dceb

added another unit test

Comments (0)

Files changed (1)

tests/test_units/test_jsonrpc.py

                     id='test',
                     error={'code': -32602,
                            'message': "Invalid params"}) == response
+
+    def test_wrong_param_type(self):
+        response = self.jsonreq('subtract', args=['1', '2'])
+        assert dict(jsonrpc='2.0',
+                    id='test',
+                    error={'code': 1,
+                           'message': "That is not an integer"}) == response