#NEWLINE# def test_get_all_profiles_with_no_profiles( self ) : #NEWLINE# #INDENT# session = mock . Mock ( ) #NEWLINE# session . pbm = mock . Mock ( ) #NEWLINE# session . invoke_api . return_value = [ ] #NEWLINE# profiles = pbm . get_all_profiles ( session ) #NEWLINE# session . invoke_api . assert_called_once_with ( self . pbm , 'PbmQueryProfile' , session . pbm . service_content . profileManager , resourceType = session . pbm . client . factory . create ( ) ) #NEWLINE# self . assertEqual ( [ ] , profiles )