<s> """<STR_LIT>""" <EOL> import unittest <EOL> from cloudcafe . compute . common . types import ComputeHypervisors <EOL> from cloudcafe . compute . config import ComputeConfig <EOL> from cloudcafe . compute . flavors_api . config import FlavorsConfig <EOL> from cloudcafe . common . tools . datagen import rand_name <EOL> from cloudroast . compute . instance_actions . api . test_resize_server_down import ResizeServerDownConfirmTests , ResizeDownConfirmBaseFixture <EOL> from cloudroast . compute . fixtures import ServerFromVolumeV1Fixture <EOL> compute_config = ComputeConfig ( ) <EOL> hypervisor = compute_config . hypervisor . lower ( ) <EOL> flavors_config = FlavorsConfig ( ) <EOL> resize_down_enabled = ( flavors_config . resize_down_enabled <EOL> if flavors_config . resize_down_enabled is not None <EOL> else flavors_config . resize_enabled ) <EOL> can_resize = ( <EOL> resize_down_enabled <EOL> and hypervisor not in [ ComputeHypervisors . IRONIC , <EOL> ComputeHypervisors . LXC_LIBVIRT ] ) <EOL> @ unittest . skipUnless ( <EOL> can_resize , '<STR_LIT>' ) <EOL> class ServerFromVolumeV1ResizeDownConfirmTests ( ServerFromVolumeV1Fixture , <EOL> ResizeServerDownConfirmTests , <EOL> ResizeDownConfirmBaseFixture ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> """<STR_LIT>""" <EOL> super ( ServerFromVolumeV1ResizeDownConfirmTests , cls ) . setUpClass ( ) <EOL> cls . key = cls . keypairs_client . create_keypair ( rand_name ( "<STR_LIT:key>" ) ) . entity <EOL> cls . resources . add ( cls . key . name , <EOL> cls . keypairs_client . delete_keypair ) <EOL> cls . create_server ( flavor_ref = cls . flavor_ref_alt , key_name = cls . key . name ) <EOL> cls . resize_down_and_confirm ( ) <EOL> @ unittest . skip ( "<STR_LIT>" ) <EOL> def test_created_server_disk_size ( self ) : <EOL> pass </s>
