test: convert simple equality asserts in excluded files

A few files still need to stay out of the later scripted diff because they contain more complicated assert shapes.
Convert the straightforward equality checks in those files by hand first.
Use a local import in `authproxy.py` so the change does not create an import cycle.
This commit is contained in:
Lőrinc
2026-03-08 21:26:20 +00:00
parent 23c06d4e6d
commit d9a3cf20a4
2 changed files with 4 additions and 3 deletions

View File

@@ -144,7 +144,8 @@ class AuthServiceProxy():
else:
return response['result']
else:
assert response['jsonrpc'] == '2.0'
from .util import assert_equal
assert_equal(response['jsonrpc'], '2.0')
if status != HTTPStatus.OK:
raise JSONRPCException({
'code': -342, 'message': 'non-200 HTTP status code'}, status)