Exemplo n.º 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."
    )
Exemplo n.º 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."
    )
Exemplo n.º 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."
Exemplo n.º 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."