def test_delete(self):
    BLOB_NAME = 'blob-name'
    not_found_response = ({'status': http_client.NOT_FOUND}, b'')
    connection = _Connection(not_found_response)
    client = _Client(connection)
    bucket = _Bucket(client)
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    bucket._blobs[BLOB_NAME] = 1
    blob.delete()
    self.assertFalse(blob.exists())
    self.assertEqual(bucket._deleted, [(BLOB_NAME, None)])
def test_delete(self):
    BLOB_NAME = 'blob-name'
    not_found_response = ({'status': http_client.NOT_FOUND}, b)
    connection = _Connection(not_found_response)
    client = _Client(connection)
    bucket = _Bucket(client)
    blob = self._make_one(BLOB_NAME, bucket=bucket)
    bucket._blobs[BLOB_NAME] = 1
    blob.delete()
    self.assertFalse(blob.exists())
    self.assertEqual(bucket._deleted, [(BLOB_NAME, None)])