MCPcopy Index your code
hub / github.com/python/cpython / test_cli_on_disk_db

Method test_cli_on_disk_db

Lib/test/test_sqlite3/test_cli.py:72–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70 self.assertIn("OperationalError (SQLITE_ERROR)", stderr)
71
72 def test_cli_on_disk_db(self):
73 self.addCleanup(unlink, TESTFN)
74 out = self.expect_success(TESTFN, "create table t(t)")
75 self.assertEqual(out, "")
76 out = self.expect_success(TESTFN, "select count(t) from t")
77 self.assertIn("(0,)", out)
78
79
80@force_not_colorized_test_class

Callers

nothing calls this directly

Calls 4

expect_successMethod · 0.95
addCleanupMethod · 0.80
assertInMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected