示例#1
0
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."
    )
示例#2
0
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."
    )
示例#3
0
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."
示例#4
0
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."