MCPcopy Index your code
hub / github.com/RustPython/RustPython / setUp

Method setUp

Lib/test/test_sqlite3/test_dbapi.py:1227–1232  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1225
1226class 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()

Callers

nothing calls this directly

Calls 3

blobopenMethod · 0.80
connectMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected