#NEWLINE# def test_discover_application_with_cpushares( self ) : #NEWLINE# #INDENT# '\n        An ``Application`` with a cpu_shares value is discovered from a\n        ``Unit`` with a cpu_shares value.\n        ' #NEWLINE# unit1 = UNIT_FOR_APP . set ( 'cpu_shares' , 512 ) #NEWLINE# units = { #NEWLINE# #INDENT# units . name : unit1 , #NEWLINE# #UNINDENT# } #NEWLINE# applications = [ APP . set ( 'cpu_shares' , 512 ) ] #NEWLINE# self . _verify_discover_state_applications ( units , applications )