#NEWLINE# def testInvalidStaticVms( self ) : #NEWLINE# #INDENT# self . _kwargs [ 'static_vms' ] = [ { #NEWLINE# #INDENT# 'fake_option' : None , #NEWLINE# #UNINDENT# } ] #NEWLINE# with self . assertRaises ( errors . Config . UnrecognizedOption ) as cm : #NEWLINE# #INDENT# self . _spec_class ( _COMPONENT , ** self . _kwargs ) #NEWLINE# #UNINDENT# self . assertEqual ( str ( self . exception ) , 'Unrecognized options were found in test_component.static_vms[0]: fake_option.' )