def METHOD_NAME(data_path: Dict):
    """Test if the credentials are loaded correctly
    The test are performed loading credentials both via address and hostname
    Args:
        data_path (Dict): data to read
    """
    init_data = {
        'name': 'cred0',
        'type': 'cred-file',
        'path': data_path['credentials']
    }
    cf = CredFile(init_data, validate=True)
    inv = read_yaml_file(data_path['inventory'])
    cf.load(inv)
    assert inv == read_yaml_file(data_path['results'])