@pytest.mark.parametrize('attr,should', {
    'id': '5726884',
    'image': 'centos-7-0-x64',
    'ipv4_address': '1.2.3.4',
    'locked': False,
    'metadata': {'role': 'control'},
    'region': 'nyc3',
    'size': '4gb',
    'ssh_keys': ['895599'],
    'status': 'active',
    # ansible
    'ansible_ssh_host': '1.2.3.4',
    'ansible_ssh_port': 22,
    'ansible_ssh_user': 'root',
    # generic
    'public_ipv4': '1.2.3.4',
    'private_ipv4': '1.2.3.4',
    'provider': 'digitalocean',
    # mi
    'consul_dc': 'nyc3',
    'role': 'control',
}.items())
def test_attrs(digitalocean_resource, digitalocean_host, attr, should):
    _, attrs, _ = digitalocean_host(digitalocean_resource, 'module_name')
    assert attr in attrs
    assert attrs[attr] == should
dataset/ETHPy150Open CiscoCloud/terraform.py/tests/test_digitalocean.py/test_attrs/original