'Checks if we can access the GCE metadata server.
Mocked in libcloud.test.common.google.GoogleTestCase.'

@staticmethod
def _is_gce():

    (http_code, http_reason, body) = _get_gce_metadata()
    if ((http_code == httplib.OK) and body):
        return True
    return False
