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

Method test_interact

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

Source from the content-addressed store, hash-verified

93 return out, err
94
95 def test_interact(self):
96 out, err = self.run_cli()
97 self.assertIn(self.MEMORY_DB_MSG, err)
98 self.assertIn(self.MEMORY_DB_MSG, err)
99 self.assertEndsWith(out, self.PS1)
100 self.assertEqual(out.count(self.PS1), 1)
101 self.assertEqual(out.count(self.PS2), 0)
102
103 def test_interact_quit(self):
104 out, err = self.run_cli(commands=(".quit",))

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected