(self)
| 470 | assert cur.fetchone()[0] == t |
| 471 | |
| 472 | def test_autocommit(self): |
| 473 | con = self.connect() |
| 474 | self.assertFalse(con.get_autocommit()) |
| 475 | |
| 476 | cur = con.cursor() |
| 477 | cur.execute("SET AUTOCOMMIT=1") |
| 478 | self.assertTrue(con.get_autocommit()) |
| 479 | |
| 480 | con.autocommit(False) |
| 481 | self.assertFalse(con.get_autocommit()) |
| 482 | cur.execute("SELECT @@AUTOCOMMIT") |
| 483 | self.assertEqual(cur.fetchone()[0], 0) |
| 484 | |
| 485 | def test_select_db(self): |
| 486 | con = self.connect() |
nothing calls this directly
no test coverage detected