'Test failure when endpoint is down.
Replicate in devstack: start devstack with placement
engine, disable placement engine apache config.'

@mock.patch.object(status.UpgradeCommands, '_placement_get')
def test_down_endpoint(self, get):

    get.side_effect = ks_exc.NotFound()
    res = self.cmd._check_placement()
    self.assertEqual(status.UpgradeCheckCode.FAILURE, res.code)
    self.assertIn('Placement    API    does    not    seem    to    be    running', res.details)
