Rewrote test_user_password() for xmlrpclib.ProtocolError:

it would be very difficult to return string from BMXMLRPCRequestHandler
This commit is contained in:
Dmitri Bogomolov 2018-10-29 18:18:35 +02:00
parent 06033ed96e
commit fabbccbeac
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
1 changed files with 2 additions and 5 deletions

View File

@ -53,11 +53,8 @@ class TestAPI(TestAPIProto):
def test_user_password(self):
"""Trying to connect with wrong username/password"""
api_wrong = xmlrpclib.ServerProxy("http://test:wrong@")
'RPC Username or password incorrect or HTTP header lacks'
' authentication at all.'
with self.assertRaises(xmlrpclib.ProtocolError):
def test_connection(self):
"""API command 'helloWorld'"""