#NEWLINE# def test_request_handler_with_retrieve_properties_ex_fault( self ) : #NEWLINE# #INDENT# managed_object = 'Datacenter' #NEWLINE# def side_effect( mo , **kwargs ) : #NEWLINE# #INDENT# self . assertEqual ( managed_object , mo . _type ) #NEWLINE# self . assertEqual ( managed_object , mo . value ) #NEWLINE# return None #NEWLINE# #UNINDENT# svc_obj = service . Service ( ) #NEWLINE# attr_name = 'retrievePropertiesEx' #NEWLINE# service_mock = svc_obj . client . service #NEWLINE# setattr ( service_mock , attr_name , side_effect ) #NEWLINE# self . assertRaises ( exceptions . VimFaultException , svc_obj . retrievePropertiesEx , managed_object )