def test_exists_hit(self):
    BLOB_NAME = 'blob-name'
    found_response = ({'status': http_client.OK}, b'')
    connection = _Connection(found_response)
    client = _Client(connection)
    bucket = _Bucket(client)
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    bucket._blobs[BLOB_NAME] = 1
    self.assertTrue(blob.exists())
def test_exists_hit(self):
    BLOB_NAME = 'blob-name'
    found_response = ({'status': http_client.OK}, b)
    connection = _Connection(found_response)
    client = _Client(connection)
    bucket = _Bucket(client)
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    bucket._blobs[BLOB_NAME] = 1
    self.assertTrue(blob.exists())