Beispiel #1
0
 def test_versionStr(self):
     request = {'method': 'aa', 'jsonrpc': '2'}
     self.assertEquals(request, jsonrpc.verifyMethodCall(request))
Beispiel #2
0
 def test_paramsMapping(self):
     request = {'method': 'aa', 'params': {'name': 'data', 'name2': 'data'}}
     self.assertEquals(request, jsonrpc.verifyMethodCall(request))
Beispiel #3
0
 def test_idStr(self):
     request = {'method': 'aa', 'id': '1b3'}
     self.assertEquals(request, jsonrpc.verifyMethodCall(request))
Beispiel #4
0
 def test_onlyMethod(self):
     request = {'method': 'abc'}
     self.assertEquals(request, jsonrpc.verifyMethodCall(request))
Beispiel #5
0
 def test_paramsSequence(self):
     request = {'method': 'aa', 'params': ['abcdef', 12321]}
     self.assertEquals(request, jsonrpc.verifyMethodCall(request))
Beispiel #6
0
 def test_versionStr(self):
     request = {'method': 'aa', 'jsonrpc': '2'}
     self.assertEquals(request, jsonrpc.verifyMethodCall(request))
Beispiel #7
0
 def test_idStr(self):
     request = {'method': 'aa', 'id': '1b3'}
     self.assertEquals(request, jsonrpc.verifyMethodCall(request))
Beispiel #8
0
 def test_paramsMapping(self):
     request = {'method': 'aa', 'params': {'name': 'data', 'name2': 'data'}}
     self.assertEquals(request, jsonrpc.verifyMethodCall(request))
Beispiel #9
0
 def test_paramsSequence(self):
     request = {'method': 'aa', 'params': ['abcdef', 12321]}
     self.assertEquals(request, jsonrpc.verifyMethodCall(request))
Beispiel #10
0
 def test_onlyMethod(self):
     request = {'method': 'abc'}
     self.assertEquals(request, jsonrpc.verifyMethodCall(request))