'Ensure InvalidAggregateActionAdd is raised when aggregate is
deleted.'

def test_add_host_to_aggregate_invalid_dismissed_status(self):

    aggregate = self._aggregate_setup(aggr_state=pool_states.DISMISSED)
    ex = self.assertRaises(exception.InvalidAggregateActionAdd, self.conn.add_to_aggregate, self.context, aggregate, 'fake_host')
    self.assertIn('aggregate    deleted', str(ex))
