@pytest.mark.parametrize('name,version', ALL_APIS)
def test_len(open_discovery_document, name, version):
    discovery_document = open_discovery_document(name, version)
    api = GoogleAPI(discovery_document=discovery_document)
    methods_len = (len(discovery_document.get('methods')) if discovery_document.get('methods') else 0)
    resources_len = (len(discovery_document.get('resources')) if discovery_document.get('resources') else 0)
    assert (len(api) == (methods_len + resources_len))
@pytest.mark.parametrize('name,version', ALL_APIS)
def test_len(open_discovery_document, name, version):
    discovery_document = open_discovery_document(name, version)
    api = GoogleAPI(discovery_document=discovery_document)
    methods_len = (len(discovery_document.get('methods')) if discovery_document.get('methods') else 0)
    resources_len = (len(discovery_document.get('resources')) if discovery_document.get('resources') else 0)
    assert (len(api) == (methods_len + resources_len))