test blob data
(self)
| 148 | self.assertEqual(data, c.fetchone()[0]) |
| 149 | |
| 150 | def test_blob(self): |
| 151 | """test blob data""" |
| 152 | data = bytes(bytearray(range(256)) * 4) |
| 153 | conn = self.connect() |
| 154 | self.safe_create_table(conn, "test_blob", "create table test_blob (b blob)") |
| 155 | |
| 156 | with conn.cursor() as c: |
| 157 | c.execute("insert into test_blob (b) values (_binary %s)", (data,)) |
| 158 | c.execute("select b from test_blob") |
| 159 | self.assertEqual(data, c.fetchone()[0]) |
| 160 | |
| 161 | def test_untyped(self): |
| 162 | """test conversion of null, empty string""" |
nothing calls this directly
no test coverage detected