summaryrefslogtreecommitdiff
path: root/test/aaa_profiling/test_resultset.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/aaa_profiling/test_resultset.py')
-rw-r--r--test/aaa_profiling/test_resultset.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/aaa_profiling/test_resultset.py b/test/aaa_profiling/test_resultset.py
index 9ffa21cb6..2b0e8de9e 100644
--- a/test/aaa_profiling/test_resultset.py
+++ b/test/aaa_profiling/test_resultset.py
@@ -51,6 +51,20 @@ class ResultSetTest(fixtures.TestBase, AssertsExecutionResults):
def test_unicode(self):
[tuple(row) for row in t2.select().execute().fetchall()]
+ @profiling.function_call_count()
+ def test_raw_string(self):
+ stmt = 'SELECT %s FROM "table"' % (
+ ", ".join("field%d" % fnum for fnum in range(NUM_FIELDS))
+ )
+ [tuple(row) for row in testing.db.execute(stmt).fetchall()]
+
+ @profiling.function_call_count()
+ def test_raw_unicode(self):
+ stmt = "SELECT %s FROM table2" % (
+ ", ".join("field%d" % fnum for fnum in range(NUM_FIELDS))
+ )
+ [tuple(row) for row in testing.db.execute(stmt).fetchall()]
+
def test_contains_doesnt_compile(self):
row = t.select().execute().first()
c1 = Column('some column', Integer) + \