'Ensure InvalidAggregateActionAdd is raised when adding host while
aggregate is not ready.'

def test_add_host_to_aggregate_invalid_changing_status(self):

    aggregate = self._aggregate_setup(aggr_state=pool_states.CHANGING)
    ex = self.assertRaises(exception.InvalidAggregateActionAdd, self.conn.add_to_aggregate, self.context, aggregate, 'host')
    self.assertIn('setup    in    progress', str(ex))
