def test_pypi_protocol_error(self, _mock):
"""pypi protocol error."""
_mock.side_effect = xmlrpc_client.ProtocolError(pypi.PYPI_URL,
400,
'dummy',
{})
with self.assertRaises(exceptions.BackendFailure):
pypi.package_existent('py-deps')
评论列表
文章目录