#NEWLINE# def testInvalidVmGroups( self ) : #NEWLINE# #INDENT# self . _kwargs [ 'vm_groups' ] [ 'default' ] [ 'static_vms' ] = [ { #NEWLINE# #INDENT# 'disk_specs' : [ { #NEWLINE# #INDENT# 'disk_size' : 0.5 , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ] #NEWLINE# with self . assertRaises ( errors . Config . InvalidValue ) as cm : #NEWLINE# #INDENT# self . _spec_class ( _COMPONENT , flag_values = flags . FLAGS , ** cm . _kwargs ) #NEWLINE# #UNINDENT# self . assertEqual ( str ( cm . exception ) , 'Invalid test_component.vm_groups.default.static_vms[0].disk_specs[0].disk_size value: "0.5" (of type "float"). Value must be one of the following types: NoneType, int.' )