Commit 3a910e8e authored by Łukasz Nowak's avatar Łukasz Nowak

- fix typo

 - invert assertion


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39168 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ef7f179c
......@@ -368,7 +368,7 @@ class TestERP5RemoteUserManager(ERP5TypeTestCase):
from Products.ERP5Wizard.Tool.WizardTool import WizardTool
original_callRemoteProxyMethod=WizardTool.callRemoteProxyMethod
try:
WizardTool.callRemoteProxyMethod = raises_value_error
WizardTool.callRemoteProxyMethod = raises_valueerror
self.assertRaises(ValueError,
self.portal.portal_wizard.callRemoteProxyMethod)
self.assertEqual(expected,
......@@ -390,7 +390,7 @@ class TestERP5RemoteUserManager(ERP5TypeTestCase):
WizardTool.callRemoteProxyMethod = raises_socket_gaierror
self.assertRaises(socket.gaierror,
self.portal.portal_wizard.callRemoteProxyMethod)
self.checkLogin(('someone', 'someone'), kw)
self.checkLogin(None, kw)
finally:
WizardTool.callRemoteProxyMethod = original_callRemoteProxyMethod
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment