def ping(self):
self.execute("<STR_LIT>")<EOL>return '<STR_LIT>'<EOL>
Return 'ok' if can ping db or raise exception

>>> import getpass
>>> s = DB(dbname='test', user=getpass.getuser(), host='localhost',
... password='')
>>> s.ping()
'ok'