@@ -59,7 +59,7 @@ def tearDown(self):
5959
6060 # Version 2.0 Tests
6161 def test_positional (self ):
62- """ Positional arguments in a single call """
62+ """Positional arguments in a single call"""
6363 result = self .client .subtract (23 , 42 )
6464 self .assertTrue (result == - 19 )
6565 result = self .client .subtract (42 , 23 )
@@ -77,7 +77,7 @@ def test_positional(self):
7777 self .assertTrue (response == verify_response )
7878
7979 def test_named (self ):
80- """ Named arguments in a single call """
80+ """Named arguments in a single call"""
8181 result = self .client .subtract (subtrahend = 23 , minuend = 42 )
8282 self .assertTrue (result == 19 )
8383 result = self .client .subtract (minuend = 42 , subtrahend = 23 )
@@ -95,7 +95,7 @@ def test_named(self):
9595 self .assertTrue (response == verify_response )
9696
9797 def test_notification (self ):
98- """ Testing a notification (response should be null) """
98+ """Testing a notification (response should be null)"""
9999 result = self .client ._notify .update (1 , 2 , 3 , 4 , 5 )
100100 self .assertTrue (result is None )
101101 request = json .loads (self .history .request )
@@ -110,7 +110,7 @@ def test_notification(self):
110110 self .assertTrue (response == verify_response )
111111
112112 def test_non_existent_method (self ):
113- """ Testing behaviour when calling a non-existent method """
113+ """Testing behaviour when calling a non-existent method"""
114114 self .assertRaises (jsonrpclib .ProtocolError , self .client .foobar )
115115 request = json .loads (self .history .request )
116116 response = json .loads (self .history .response )
@@ -128,14 +128,14 @@ def test_non_existent_method(self):
128128 self .assertTrue (response == verify_response )
129129
130130 def test_special_method (self ):
131- """ Tests behaviour on dunder methods """
131+ """Tests behaviour on dunder methods"""
132132 self .assertRaises (
133133 AttributeError , getattr , self .client , "__special_method__"
134134 )
135135 self .assertIsNone (self .history .request )
136136
137137 def test_invalid_json (self ):
138- """ Tests behaviour on invalid JSON request """
138+ """Tests behaviour on invalid JSON request"""
139139 invalid_json = (
140140 '{"jsonrpc": "2.0", "method": "foobar, ' + '"params": "bar", "baz]'
141141 )
@@ -149,7 +149,7 @@ def test_invalid_json(self):
149149 self .assertTrue (response == verify_response )
150150
151151 def test_invalid_request (self ):
152- """ Tests incomplete request """
152+ """Tests incomplete request"""
153153 invalid_request = '{"jsonrpc": "2.0", "method": 1, "params": "bar"}'
154154 self .client ._run_request (invalid_request )
155155 response = json .loads (self .history .response )
@@ -161,7 +161,7 @@ def test_invalid_request(self):
161161 self .assertTrue (response == verify_response )
162162
163163 def test_batch_invalid_json (self ):
164- """ Tests invalid JSON request on batch call """
164+ """Tests invalid JSON request on batch call"""
165165 invalid_request = (
166166 '[ {"jsonrpc": "2.0", "method": "sum", '
167167 + '"params": [1,2,4], "id": "1"},{"jsonrpc": "2.0", "method" ]'
@@ -176,7 +176,7 @@ def test_batch_invalid_json(self):
176176 self .assertTrue (response == verify_response )
177177
178178 def test_empty_array (self ):
179- """ Tests empty array as request """
179+ """Tests empty array as request"""
180180 invalid_request = "[]"
181181 self .client ._run_request (invalid_request )
182182 response = json .loads (self .history .response )
@@ -188,7 +188,7 @@ def test_empty_array(self):
188188 self .assertTrue (response == verify_response )
189189
190190 def test_nonempty_array (self ):
191- """ Tests array as request """
191+ """Tests array as request"""
192192 invalid_request = "[1,2]"
193193 request_obj = json .loads (invalid_request )
194194 self .client ._run_request (invalid_request )
@@ -203,7 +203,7 @@ def test_nonempty_array(self):
203203 self .assertTrue (resp == verify_resp )
204204
205205 def test_batch (self ):
206- """ Tests batch call """
206+ """Tests batch call"""
207207 multicall = jsonrpclib .MultiCall (self .client )
208208 multicall .sum (1 , 2 , 4 )
209209 multicall ._notify .notify_hello (7 )
@@ -272,7 +272,7 @@ def test_batch(self):
272272 self .assertTrue (response == verify_response )
273273
274274 def test_batch_notifications (self ):
275- """ Tests batch notifications """
275+ """Tests batch notifications"""
276276 multicall = jsonrpclib .MultiCall (self .client )
277277 multicall ._notify .notify_sum (1 , 2 , 4 )
278278 multicall ._notify .notify_hello (7 )
@@ -290,7 +290,8 @@ def test_batch_notifications(self):
290290 self .assertTrue (self .history .response == "" )
291291
292292 def test_url_query_string (self ):
293- """ Tests if the query string arguments are kept """
293+ """Tests if the query string arguments are kept"""
294+
294295 # Prepare a simple server
295296 class ReqHandler (BaseHTTPRequestHandler ):
296297 """
0 commit comments