'Checks case when env has new api and old compute.'

@mock.patch.object(oslo_messaging.RPCClient, 'can_send_version', return_value=False)
@mock.patch.object(compute_api.API, 'get', fake_instance_get)
def test_get_diagnostics_old_compute(self, mock_version):

    controller = server_diagnostics.ServerDiagnosticsController()
    req = self._get_request()
    self.assertRaises(exc.HTTPBadRequest, controller.index, req, UUID)
