Ejemplo n.º 1
0
 def setUp(self):
     super(ShareServerAPITest, self).setUp()
     self.controller = share_servers.ShareServerController()
     self.resource_name = self.controller.resource_name
     self.mock_object(policy, 'check_policy', mock.Mock(return_value=True))
     self.mock_object(db_api, 'share_server_get_all',
                      mock.Mock(return_value=fake_share_server_get_all()))
Ejemplo n.º 2
0
 def setUp(self):
     super(ShareServerAPITest, self).setUp()
     self.controller = share_servers.ShareServerController()
     self.stubs.Set(policy, 'check_policy', mock.Mock(return_value=True))
     self.stubs.Set(db_api, 'share_server_get_all',
                    mock.Mock(return_value=fake_share_server_get_all()))