'Test failure when no endpoint exists.
Replicate in devstack: start devstack without placement
engine, but create valid placement service user and specify it
in auth section of [placement] in nova.conf.'

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

    get.side_effect = ks_exc.EndpointNotFound()
    res = self.cmd._check_placement()
    self.assertEqual(status.UpgradeCheckCode.FAILURE, res.code)
    self.assertIn('Placement    API    endpoint    not    found', res.details)
