summaryrefslogtreecommitdiff
path: root/tests/flags.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/flags.py')
-rw-r--r--tests/flags.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/flags.py b/tests/flags.py
new file mode 100644
index 0000000..e6e7790
--- /dev/null
+++ b/tests/flags.py
@@ -0,0 +1,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
+