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

Method test_interact

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

Source from the content-addressed store, hash-verified

102 return out, err
103
104 def test_interact(self):
105 out, err = self.run_cli()
106 self.assertIn(self.MEMORY_DB_MSG, err)
107 self.assertIn(self.MEMORY_DB_MSG, err)
108 self.assertEndsWith(out, self.PS1)
109 self.assertEqual(out.count(self.PS1), 1)
110 self.assertEqual(out.count(self.PS2), 0)
111
112 def test_interact_quit(self):
113 out, err = self.run_cli(commands=(".quit",))

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