Author: darcy
Date: Tue Jan  8 09:47:25 2013
New Revision: 513

Log:
Put the attributes one per line to make it easier to add and remove them.
It will also make future changes easier to see in the diffs.
Remove when_notified attribute.

Modified:
   trunk/module/test_pg.py

Modified: trunk/module/test_pg.py
==============================================================================
--- trunk/module/test_pg.py     Tue Jan  8 09:34:48 2013        (r512)
+++ trunk/module/test_pg.py     Tue Jan  8 09:47:25 2013        (r513)
@@ -964,15 +964,64 @@
         self.db.close()
 
     def testAllDBAttributes(self):
-        attributes = '''begin cancel clear close commit db dbname debug delete
-            end endcopy error escape_bytea escape_identifier escape_literal
-            escape_string fileno get get_attnames get_databases
-            get_notice_receiver get_relations get_tables getline getlo
-            getnotify has_table_privilege host insert inserttable locreate
-            loimport options parameter pkey port protocol_version putline
-            query release reopen reset rollback savepoint server_version
-            set_notice_receiver source start status transaction tty
-            unescape_bytea update use_regtypes user when_notified'''.split()
+        attributes = [
+            'begin',
+            'cancel',
+            'clear',
+            'close',
+            'commit',
+            'db',
+            'dbname',
+            'debug',
+            'delete',
+            'end',
+            'endcopy',
+            'error',
+            'escape_bytea',
+            'escape_identifier',
+            'escape_literal',
+            'escape_string',
+            'fileno',
+            'get',
+            'get_attnames',
+            'get_databases',
+            'get_notice_receiver',
+            'get_relations',
+            'get_tables',
+            'getline',
+            'getlo',
+            'getnotify',
+            'has_table_privilege',
+            'host',
+            'insert',
+            'inserttable',
+            'locreate',
+            'loimport',
+            'notification_handler',
+            'options',
+            'parameter',
+            'pkey',
+            'port',
+            'protocol_version',
+            'putline',
+            'query',
+            'release',
+            'reopen',
+            'reset',
+            'rollback',
+            'savepoint',
+            'server_version',
+            'set_notice_receiver',
+            'source',
+            'start',
+            'status',
+            'transaction',
+            'tty',
+            'unescape_bytea',
+            'update',
+            'use_regtypes',
+            'user',
+        ]
         db_attributes = [a for a in dir(self.db)
             if not a.startswith('_')]
         self.assertEqual(attributes, db_attributes)
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to