summaryrefslogtreecommitdiff
path: root/tests/flags.py
blob: e6e77902a7c4321ce4434487494f185c8e6a579d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from pysqlcipher import dbapi2

c = dbapi2.connect(":memory:")
cur = c.execute("pragma compile_options")

lines = cur.fetchall()
flags = [l[0] for l in lines]
for flag in flags:
    print flag
assert "HAVE_USLEEP" in flags
assert "ENABLE_LOAD_EXTENSION" in flags