Browse Source

ecn-robots: reworked pgdb.py testing a bit

master
Nagy Károly Gábriel 14 years ago
parent
commit
83184db9b1
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      pgdb.py

+ 5
- 1
pgdb.py

@ -139,7 +139,11 @@ def _test():
test = Db(u'postgres')
print test.db_list()
print test.usr_list()
print test.db_info['encoding'], test.info['collation'], test.info['ctype']
print test.db_info['encoding'], test.db_info['collation'], test.db_info['ctype']
print test.db_info['encoding'], test.db_info['collation'], test.db_info['ctype']
print test.db_info['encoding'], test.db_info['collation'], test.db_info['ctype']
print test.db_info['encoding'], test.db_info['collation'], test.db_info['ctype']
print test.sanitize("aaaa-fgdg?sd/!_fb*gs'h;s'hdghj.dn ")
if __name__ == '__main__':
_test()

Loading…
Cancel
Save