import pytest

from cosmo_tester.framework.test_hosts import Hosts
from cosmo_tester.test_suites.snapshots import get_multi_tenant_versions_list


@pytest.fixture(scope='function', params=get_multi_tenant_versions_list())
def hosts(request, ssh_key, module_tmpdir, test_config, logger):
    hosts = Hosts(
        ssh_key, module_tmpdir,
        test_config, logger, request,
        number_of_instances=3,
    )

    hosts.instances[0].image_type = request.param

    vm = hosts.instances[2]
    vm.image_name = test_config.platform['centos_7_image']
    vm.username = test_config['test_os_usernames']['centos_7']

    hosts.create()

    try:
        yield hosts
    finally:
        hosts.destroy()

@@ -59,16 +59,27 @@
 rt Hosts
+, get_image
 %0Afrom co
@@ -444,35 +444,164 @@
 s%5B0%5D
-.image_type = request.param
+ = get_image(request.param, test_config)%0A    hosts.instances%5B1%5D = get_image('master', test_config)%0A    hosts.instances%5B2%5D = get_image('centos', test_config)
 %0A%0A  

Use specified images for snapshot fixture