#NEWLINE# def testInvalidDiskSpec( self ) : #NEWLINE# #INDENT# self . _kwargs [ 'disk_spec' ] = { #NEWLINE# #INDENT# 'GCP' : None , #NEWLINE# #UNINDENT# } #NEWLINE# with self . assertRaises ( errors . Config . InvalidValue ) as cm : #NEWLINE# #INDENT# self . _spec_class ( _COMPONENT , ** self . _kwargs ) #NEWLINE# #UNINDENT# self . assertEqual ( str ( cm . exception ) , 'Invalid test_component.disk_spec.GCP value: "None" (of type "NoneType"). Value must be one of the following types: dict.' )