#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( InstanceTypeExtraSpecsTestCase , self ) . setUp ( ) #NEWLINE# self . context = context . get_admin_context ( ) #NEWLINE# flavor = objects . Flavor ( context = self . context , name = 'cg1.4xlarge' , memory_mb = 22000 , vcpus = 8 , root_gb = 1690 , ephemeral_gb = 2000 , flavorid = 105 ) #NEWLINE# self . specs = dict ( cpu_arch = arch . X86_64 , cpu_model = 'Nehalem' , xpu_arch = 'fermi' , xpus = '2' , xpu_model = 'Tesla 2050' ) #NEWLINE# flavor . extra_specs = flavor . specs #NEWLINE# flavor . create ( ) #NEWLINE# self . flavor = flavor #NEWLINE# self . instance_type_id = flavor . id #NEWLINE# self . flavorid = flavor . flavorid