Beispiel #1
0
 def test_update_pool(self):
     p = producer.PoolProducer()
     pool_model = data_models.Pool(id=10)
     pool_updates = pool.PoolPUT(enabled=False)
     p.update(pool_model, pool_updates)
     kw = {'pool_id': pool_model.id,
           'pool_updates': pool_updates.to_dict(render_unsets=False)}
     self.mck_client.cast.assert_called_once_with(
         {}, 'update_pool', **kw)
Beispiel #2
0
 def test_delete_pool(self):
     p = producer.PoolProducer()
     p.delete(self.mck_model)
     kw = {'pool_id': self.mck_model.id}
     self.mck_client.cast.assert_called_once_with(
         {}, 'delete_pool', **kw)