def test_top_packages(num, pyramid_request): with pytest.raises(xmlrpc.XMLRPCWrappedError) as exc: xmlrpc.top_packages(pyramid_request, num) assert ( exc.value.faultString == "RuntimeError: This API has been removed. Use BigQuery instead." )
def test_top_packages(num): with pytest.raises(xmlrpc.XMLRPCWrappedError) as exc: xmlrpc.top_packages(pretend.stub(), num) assert exc.value.faultString == \ "RuntimeError: This API has been removed. Please Use BigQuery instead."
def test_top_packages(num): with pytest.raises(xmlrpc.XMLRPCWrappedError) as exc: xmlrpc.top_packages(pretend.stub(), num) assert exc.value.faultString == \ "RuntimeError: This API has been removed. Use BigQuery instead."