(self)
| 1225 | |
| 1226 | class BlobTests(unittest.TestCase): |
| 1227 | def setUp(self): |
| 1228 | self.cx = sqlite.connect(":memory:") |
| 1229 | self.cx.execute("create table test(b blob)") |
| 1230 | self.data = b"this blob data string is exactly fifty bytes long!" |
| 1231 | self.cx.execute("insert into test(b) values (?)", (self.data,)) |
| 1232 | self.blob = self.cx.blobopen("test", "b", 1) |
| 1233 | |
| 1234 | def tearDown(self): |
| 1235 | self.blob.close() |