@pytest.mark.parametrize('name,version', ALL_APIS)
def test_constructor(open_discovery_document, name, version):
    discovery_document = open_discovery_document(name, version)
    api = GoogleAPI(discovery_document=discovery_document)
    assert (id(api.discovery_document) == id(api.discovery_document))
    assert (api['resources'] == discovery_document.get('resources'))
@pytest.mark.parametrize('name,version', ALL_APIS)
def test_constructor(open_discovery_document, name, version):
    discovery_document = open_discovery_document(name, version)
    api = GoogleAPI(discovery_document=discovery_document)
    assert (id(api.discovery_document) == id(api.discovery_document))
    assert (api['resources'] == discovery_document.get('resources'))