(self)
| 96 | ) |
| 97 | |
| 98 | def test_client_flag(self): |
| 99 | conn = connection_factory( |
| 100 | use_unicode=True, client_flag=MySQLdb.constants.CLIENT.FOUND_ROWS |
| 101 | ) |
| 102 | |
| 103 | self.assertIsInstance(conn.client_flag, int) |
| 104 | self.assertTrue(conn.client_flag & MySQLdb.constants.CLIENT.FOUND_ROWS) |
| 105 | with self.assertRaises(AttributeError): |
| 106 | conn.client_flag = 0 |
| 107 | |
| 108 | conn.close() |
| 109 | |
| 110 | def test_fileno(self): |
| 111 | self.assertGreaterEqual(self.conn.fileno(), 0) |
nothing calls this directly
no test coverage detected