<s> from oslo_config import cfg <EOL> from nova . tests . functional . api_sample_tests import test_servers <EOL> from nova . tests . unit . api . openstack import fakes <EOL> CONF = cfg . CONF <EOL> CONF . import_opt ( '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> class BlockDeviceMappingV1BootJsonTest ( test_servers . ServersSampleBase ) : <EOL> extension_name = "<STR_LIT>" <EOL> def test_servers_post_with_bdm ( self ) : <EOL> self . stub_out ( '<STR_LIT>' , fakes . stub_volume_get ) <EOL> self . stub_out ( '<STR_LIT>' , <EOL> fakes . stub_volume_check_attach ) <EOL> return self . _post_server ( ) <EOL> class BlockDeviceMappingV2BootJsonTest ( BlockDeviceMappingV1BootJsonTest ) : <EOL> extension_name = "<STR_LIT>" <EOL> def _get_flags ( self ) : <EOL> f = super ( BlockDeviceMappingV2BootJsonTest , self ) . _get_flags ( ) <EOL> f [ '<STR_LIT>' ] = CONF . osapi_compute_extension [ : ] <EOL> f [ '<STR_LIT>' ] . append ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> return f </s>
