Add a test for connection.ping()

This commit is contained in:
adustman
2009-03-11 02:34:59 +00:00
parent 1697ff85f1
commit fa5cb8b463

View File

@ -79,7 +79,10 @@ class test_MySQLdb(capabilities.DatabaseTest):
self.cursor.execute("describe some_non_existent_table");
except self.connection.ProgrammingError, msg:
self.failUnless(msg[0] == ER.NO_SUCH_TABLE)
def test_ping(self):
self.connection.ping()
if __name__ == '__main__':
if test_MySQLdb.leak_test: