#  tests for pycurl-7.45.4-py312haf51bff_0 (this is a generated file);
print('===== testing package: pycurl-7.45.4-py312haf51bff_0 =====');
print('running run_test.py');
#  --- run_test.py (begin) ---
import curl
import pycurl
try:
    from cStringIO import StringIO as BytesIO
except:
    from io import BytesIO

buf = BytesIO()

c = pycurl.Curl()
c.setopt(c.URL, 'https://repo.anaconda.com/')
c.setopt(c.WRITEFUNCTION, buf.write)
c.perform()

print(buf.getvalue())
assert b'Anaconda, Inc.' in buf.getvalue()
buf.close()
#  --- run_test.py (end) ---

print('===== pycurl-7.45.4-py312haf51bff_0 OK =====');
