summaryrefslogtreecommitdiff
path: root/tests/test_async.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_async.py')
-rwxr-xr-xtests/test_async.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_async.py b/tests/test_async.py
index 6f3ec4c..a4a11b9 100755
--- a/tests/test_async.py
+++ b/tests/test_async.py
@@ -388,6 +388,15 @@ class AsyncTests(unittest.TestCase):
self.wait(cur2)
self.assertEquals(cur2.fetchone()[0], 1)
+ def test_notices(self):
+ del self.conn.notices[:]
+ cur = self.conn.cursor()
+ cur.execute("create temp table chatty (id serial primary key);")
+ self.wait(cur)
+ self.assertEqual("CREATE TABLE", cur.statusmessage)
+ self.assert_(self.conn.notices)
+
+
def test_suite():
return unittest.TestLoader().loadTestsFromName(__name__)