def get_share_instances_data(self): try: share_instances = manila.share_instance_list(self.request) except Exception: share_instances = [] exceptions.handle(self.request, _("Unable to retrieve share instances.")) return share_instances
def get_share_instances_data(self): try: share_instances = manila.share_instance_list(self.request) except Exception: share_instances = [] exceptions.handle( self.request, _("Unable to retrieve share instances.")) return share_instances
def test_share_instance_list(self): api.share_instance_list(self.request) self.manilaclient.share_instances.list.assert_called_once_with()
def test_share_instance_list(self): api.share_instance_list(self.request) self.manilaclient.share_instances.list.assert_called_once_with()