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

Method test_interact_version

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

Source from the content-addressed store, hash-verified

117 self.assertEqual(out.count(self.PS2), 0)
118
119 def test_interact_version(self):
120 out, err = self.run_cli(commands=(".version",))
121 self.assertIn(self.MEMORY_DB_MSG, err)
122 self.assertIn(sqlite3.sqlite_version + "\n", out)
123 self.assertEndsWith(out, self.PS1)
124 self.assertEqual(out.count(self.PS1), 2)
125 self.assertEqual(out.count(self.PS2), 0)
126 self.assertIn(sqlite3.sqlite_version, out)
127
128 def test_interact_empty_source(self):
129 out, err = self.run_cli(commands=("", " "))

Callers

nothing calls this directly

Calls 5

run_cliMethod · 0.95
assertInMethod · 0.80
assertEndsWithMethod · 0.80
assertEqualMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected